GNU bug report logs - #47936
AucTeX and electric-pair-mode

Previous Next

Package: auctex;

Reported by: Philip Kaludercic <philipk <at> posteo.net>

Date: Wed, 21 Apr 2021 17:32:02 UTC

Severity: normal

Done: Tassilo Horn <tsdh <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #31 received at 47936 <at> debbugs.gnu.org (full text, mbox):

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: 47936 <at> debbugs.gnu.org, bug-auctex <at> gnu.org,
 Philip Kaludercic <philipk <at> posteo.net>
Subject: Re: bug#47936: AucTeX and electric-pair-mode
Date: Thu, 22 Apr 2021 21:08:41 +0900
>>>>> Tassilo Horn <tsdh <at> gnu.org> writes:
> Ikumi Keita <ikumi <at> ikumi.que.jp> writes:
>> AUCTeX already has the following code in `LaTeX-common-initialization'
>> to turn off `electric-pair-mode' explicitly.  

> Oh, I've already forgotten. :-)

>> Thanks. Maybe the attached patch might be better so that
>> `LaTeX-insert-left-brace' can get rid of all unexpected interactions
>> with `self-insert-command'. Tassilo, what do you think about it?

> Ah, yes, that's a a much better idea!  Feel free to install it and undo
> Philip's change which shouldn't be needed anymore when not using
> `self-insert-command'.

I reconsidered it and committed a modification so that
`LaTeX-insert-left-brace' suppresses such interaction only when it
inserts the right delimeter by itself. Now `electric-pair-mode' does its
job when e.g. prefix argument is given.

Regards,
Ikumi Keita




This bug report was last modified 4 years and 91 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.