GNU bug report logs - #55447
29.0.50; package-quickstart.el contains '#$', preventing Emacs from initializing correctly

Previous Next

Package: emacs;

Reported by: Daniel Semyonov <daniel <at> dsemy.com>

Date: Mon, 16 May 2022 10:31:01 UTC

Severity: normal

Tags: moreinfo

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #25 received at 55447 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Daniel Semyonov <daniel <at> dsemy.com>
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 55447 <at> debbugs.gnu.org
Subject: Re: bug#55447: 29.0.50; package-quickstart.el contains '#$',
 preventing Emacs from initializing correctly
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





This bug report was last modified 3 years and 8 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.