emacs-devel
[Top][All Lists]
Advanced

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

Re: Saving match data


From: Uwe Brauer
Subject: Re: Saving match data
Date: Thu, 29 Sep 2016 09:29:26 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

    > On 2016-09-28, at 16:01, Philipp Stephani <address@hidden> wrote:


    > Yes, it is surprising.  Here's a story from three years ago about how
    > this hit me:
    > http://mbork.pl/2013-09-18_Selective_replacement_in_LaTeX_documents_(en)

There was also a problem with auto-capitalize-mode and auctex. See
see: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23180
and its solution


In order to avoid, that in Auctex, math-mode constructions like
$A_i$ get expanded to $A_I$ use set `auto-capitalize-predicate' was
set to (lambda () (not (texmathp))) as in the following. However
`texmathp' function doesn't save match data but it's run in
`auto-capitalize' that is installed into `after-change-functions'
hook however such functions (info "(elisp)Change Hooks") must
restore match data otherwise unexpected behavior will appear, as
it's in the case of the following BUG.....




reply via email to

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