From: Lars Ingebrigtsen <larsi@gnus.org>
To: Daniel Semyonov <daniel@dsemy.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, 55447@debbugs.gnu.org
Subject: bug#55447: 29.0.50; package-quickstart.el contains '#$', preventing Emacs from initializing correctly
Date: Tue, 17 May 2022 11:46:18 +0200 [thread overview]
Message-ID: <871qwsmqz9.fsf@gnus.org> (raw)
In-Reply-To: <875ym4mrzl.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 17 May 2022 11:24:30 +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
next prev parent reply other threads:[~2022-05-17 9:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-16 10:30 bug#55447: 29.0.50; package-quickstart.el contains '#$', preventing Emacs from initializing correctly Daniel Semyonov via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-16 12:22 ` Lars Ingebrigtsen
2022-05-17 6:04 ` Daniel Semyonov via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-17 8:53 ` Lars Ingebrigtsen
2022-05-17 8:57 ` Lars Ingebrigtsen
2022-05-17 9:24 ` Lars Ingebrigtsen
2022-05-17 9:46 ` Lars Ingebrigtsen [this message]
2022-05-17 12:16 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-17 17:33 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871qwsmqz9.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=55447@debbugs.gnu.org \
--cc=daniel@dsemy.com \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.