auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] AUCTeX 11.88 released


From: Mosè Giordano
Subject: Re: [AUCTeX] AUCTeX 11.88 released
Date: Thu, 30 Oct 2014 14:59:33 +0100

Hi Uwe,

2014-10-30 13:28 GMT+01:00 Uwe Siart <address@hidden>:
> Mosè Giordano <address@hidden> writes:
>
>> Hi Uwe,
>>
>> 2014-10-30 10:04 GMT+01:00 Uwe Siart <address@hidden>:
>>> So far I just see some interference between electric-pair-mode and
>>> LaTeX-electric-left-right-brace. If both are non-nil I get unexpected
>>> results. But I can't yet tell if it's a bug. First I will have to learn
>>> more about these new features.
>>
>> Uh?  latex.el sets `electric-pair-mode' to nil locally for LaTeX
>> buffer, just to avoid these problems.  How come it's non-nil for you
>> there?
>
> Mosè, sorry for the noise. I was overhasty. Maybe I can explain now:
>
> I've set electric-pair-mode to t. Emacs was running. I read about
> LaTeX-electric-left-right-brace, wanted to give it a try, called
> customize-variable and pressed 'Apply'. Then I returned to the LaTeX
> buffer which existed before. I typed '(' and got '(()'.
>
> Now I saved my customizations, opened LaTeX file again, and it worked
> correctly.
>
> So I think that reseting electric-pair-mode did not work because the
> LaTeX buffer was created before I customized
> LaTeX-electric-left-right-brace.

Yes, because latex.el sets `electric-pair-mode' to nil when opening a
buffer and only if `electric-pair-mode' is non-nil.  What we can do is
to automatically set `electric-pair-mode' to nil when
`LaTeX-electric-left-right-brace' is changed with customize.  Thanks
for the hint!

Bye,
Mosè



reply via email to

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