Subject: Re: bug#55447: 29.0.50; package-quickstart.el contains '#$', preventing Emacs from initializing correctly

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 17 May 2022 11:46:18 +0200

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