help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to control pairing of quotes in text-mode with electric-pair-mod


From: Andrea Greselin
Subject: Re: How to control pairing of quotes in text-mode with electric-pair-mode?
Date: Fri, 12 Jul 2019 18:35:40 +0200

Well, so be it. Thanks.

On Thu, 11 Jul 2019 at 13:22, Noam Postavsky <npostavs@gmail.com> wrote:

> On Fri, 5 Jul 2019 at 08:43, Andrea Greselin <greselin.andrea@gmail.com>
> wrote:
>
> > It works fine in 'emacs-lisp-mode' but it doesn't in 'text-mode': quotes
> > are still paired around words. I've noticed that it's the same with
> > 'electric-pair-inhibit-predicate' set to
> > 'electric-pair-conservative-inhibit', which should suppress pairing at
> the
> > beginning of words: in 'emacs-lisp-mode' both parentheses and quotes are
> > not paired at the beginning of words, but in 'text-mode' only parentheses
> > pairing is suppressed.
>
> Looks like the predicate is not considered when the character comes
> from electric-pair-pairs. In that case electric-pair-syntax-info
> returns t for UNCONDITIONAL, and
> electric-pair-post-self-insert-function doesn't call
> electric-pair-inhibit-predicate.
>
> So I guess this is not possible right now.
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]