GNU bug report logs -
#23180
2016-01-31; Auto-capitalize and change env
Previous Next
Reported by: Uwe Brauer <oub <at> mat.ucm.es>
Date: Fri, 1 Apr 2016 09:39:01 UTC
Severity: normal
Tags: notabug
Done: mose <at> gnu.org (Mosè Giordano)
Bug is archived. No further changes may be made.
Full log
Message #44 received at 23180 <at> debbugs.gnu.org (full text, mbox):
Hi Uwe,
I dug further into the bug and noticed that it can be better
circumvented by setting `auto-capitalize-predicate' to
(lambda () (not (save-match-data (texmathp))))
It seems that something uses match data by `texmathp' and moves point
after `after-change-functions' hook is run. This is actually also
documented into Elisp manual:
https://www.gnu.org/software/emacs/manual/html_node/elisp/Change-Hooks.html
(info "(elisp)Change Hooks").
My question to other readers is: does someone knows if it's safe to
wrap the whole `texmathp' function with a `save-match-data' or this
affects the result of `texmathp' and related functions? I'm CC-ing
Marcin that recently studied the code of `texmathp' (sorry for the
noise, Marcin :-)
In the end I'd say that `LaTeX-modify-environment' is fine, your
`auto-capitalize-predicate' must restore match data anyway, `texmathp'
could be adjusted, but without further comments I'll leave it as it is now.
Bye,
Mosè
This bug report was last modified 8 years and 229 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.