[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
Re: How to control pairing of quotes in text-mode with electric-pair-mode?
Thu, 11 Jul 2019 07:22:17 -0400
On Fri, 5 Jul 2019 at 08:43, Andrea Greselin <address@hidden> 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
So I guess this is not possible right now.