diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-05-17 11:48:12 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-05-17 11:48:12 +0200 |
commit | dc239872cc248414f121e0455d447ef00f9b4cc4 (patch) | |
tree | 6b207dc786fb2450fbf83ac49a6b050c2945d0de /lisp/emacs-lisp/package.el | |
parent | 608afd6e4ec46ca9b3843c05934d72e759fe1ad5 (diff) | |
download | emacs-dc239872cc248414f121e0455d447ef00f9b4cc4.tar.gz emacs-dc239872cc248414f121e0455d447ef00f9b4cc4.tar.bz2 emacs-dc239872cc248414f121e0455d447ef00f9b4cc4.zip |
Fix package-quickstart breakage
* lisp/emacs-lisp/package.el (package-quickstart-refresh): Work
around syntax-ppss now clobbering match data (but it's not clear
whether that's supposed to be allowed) (bug#55447).
Diffstat (limited to 'lisp/emacs-lisp/package.el')
-rw-r--r-- | lisp/emacs-lisp/package.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index f356a2bf603..3a05005fb57 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -4288,7 +4288,7 @@ activations need to be changed, such as when `package-load-list' is modified." (insert-file-contents file) ;; Fixup the special #$ reader form and throw away comments. (while (re-search-forward "#\\$\\|^;\\(.*\n\\)" nil 'move) - (unless (nth 8 (syntax-ppss)) + (unless (ppss-string-terminator (save-match-data (syntax-ppss))) (replace-match (if (match-end 1) "" pfile) t t))) (unless (bolp) (insert "\n")) (insert ")\n"))) |