bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#55447: 29.0.50; package-quickstart.el contains '#$', preventing Emac


From: Lars Ingebrigtsen
Subject: bug#55447: 29.0.50; package-quickstart.el contains '#$', preventing Emacs from initializing correctly
Date: Tue, 17 May 2022 11:46:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

The problem is here:

          ;; Fixup the special #$ reader form and throw away comments.
          (while (re-search-forward "#\\$\\|^;\\(.*\n\\)" nil 'move)
            (unless (nth 8 (syntax-ppss))
              (replace-match (if (match-end 1) "" pfile) t t)))

This assumes that syntax-ppss doesn't change match data, and that was
apparently true in Emacs 28, but is no longer true.  Slapping a
(save-match-data ...) around that fixes this problem.

Stefan, is syntax-ppss supposed to not clobber match data?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no






reply via email to

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