Eli Zaretskii writes: >> From: Jens Schmidt >> Cc: 66218@debbugs.gnu.org >> Date: Sat, 07 Oct 2023 19:39:52 +0200 >> Even if the patch is so innocent as adding a `save-match-data' in the >> right place? > > No patch is "innocent" in Emacs, believe me. But yes, even so. Please let me summarize (plus one new point): - This bug is hard to reproduce, also due to its asynchronous nature. - It might not affect many users, but if one is affected, it might be highly confusing. I could imagine a report like "If I press C-M-a at the end of a very long function, it sometimes does not jump to the beginning of that function." just because under some circumstances the beginning of that function might not have been propertized yet. - The fix is a rather light-weight and IMO obvious change: Use `save-match-data' when you want to keep your match data save. If that does not convince you for Emacs 29, fine with me, let's go for master, then. Updated patch attached. Thanks. Just for the record: A work-around on Emacs 29 would be to set `syntax-propertize-function' to nil in `emacs-lisp-mode'. Or to advise function `syntax-ppss' to save match data.