GNU bug report logs -
#58558
29.0.50; re-search-forward is slow in some buffers
Previous Next
Full log
Message #218 received at 58558 <at> debbugs.gnu.org (full text, mbox):
Hello, Eli.
On Wed, Apr 12, 2023 at 18:22:22 +0300, Eli Zaretskii wrote:
> > From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> > Cc: acm <at> muc.de, yantar92 <at> posteo.net, larsi <at> gnus.org, 58558 <at> debbugs.gnu.org
> > Date: Wed, 12 Apr 2023 10:38:50 -0400
> > > Also, that code was there in Emacs 28 as well, so how come it suddenly
> > > has this effect now?
> > The effect of the code depends on whether the buffer that's current when
> > `cc-defs.el` is loaded has set `parse-sexp-lookup-properties`
> > buffer-locally or not.
> > I don't have Emacs-28 at hand, but the value of
> > `parse-sexp-lookup-properties` in *scratch* is (buffer-local) t in
> > Emacs-29 and (global) nil in Emacs-27.
> Ah, okay. So in Emacs 29 we started setting this variable locally in
> some buffers? Do you happen to know where's the change which caused
> that, and why was it done?
I suspect this commit as the cause:
commit 6ccc4b6bc8a14daca6b3e3250574752c90c1eb9b
Author: Noam Postavsky <npostavs <at> gmail.com>
Date: Fri May 6 18:31:00 2022 +0200
Handle elisp #-syntax better in Emacs Lisp mode
* elisp-mode.el (elisp-mode-syntax-propertize): New function.
(emacs-lisp-mode): Set it as syntax-propertize-function (bug#15998).
Lisp Interaction Mode is derived from Emacs Lisp Mode. Whenever there
is a non-nil syntax-propertize-function, run-mode-hooks sets
parse-sexp-lookup-properties to t.
This is probably harmless in *scratch*.
--
Alan Mackenzie (Nuremberg, Germany).
This bug report was last modified 2 years and 64 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.