diff options
author | Jim Porter <jporterbugs@gmail.com> | 2023-08-04 09:31:59 -0700 |
---|---|---|
committer | Jim Porter <jporterbugs@gmail.com> | 2023-08-04 11:01:31 -0700 |
commit | 8574ef314c4250f7c10245cb8abe11dcc07bfe6d (patch) | |
tree | f20d7a1be23931bdbe18832e5380cf13e4645af8 /lisp/emacs-lisp | |
parent | 8cbd4a02a2b9823a6aa7e722af6e3d204f881aed (diff) | |
download | emacs-8574ef314c4250f7c10245cb8abe11dcc07bfe6d.tar.gz emacs-8574ef314c4250f7c10245cb8abe11dcc07bfe6d.tar.bz2 emacs-8574ef314c4250f7c10245cb8abe11dcc07bfe6d.zip |
Fix loaddef generation with ";;;foo-autoload" cookies in external packages
This caused an issue where package-specific autoload cookies weren't
being correctly recognized, so they got dumped into the package's main
"<pkg>-autoloads.el" file, instead of "<pkg>-loaddefs.el" as they
should (bug#65023).
* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--parse-file):
Save match data when checking syntax.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/loaddefs-gen.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/loaddefs-gen.el b/lisp/emacs-lisp/loaddefs-gen.el index 5db9af21508..d7b9b131bc8 100644 --- a/lisp/emacs-lisp/loaddefs-gen.el +++ b/lisp/emacs-lisp/loaddefs-gen.el @@ -431,7 +431,8 @@ don't include." ;; have an autoload cookie on the first column of a ;; doc string or the like. (The Emacs tree ;; shouldn't contain any such instances.) - (not (ppss-string-terminator (syntax-ppss)))) + (not (ppss-string-terminator + (save-match-data (syntax-ppss))))) ;; ... and if we have one of these names, then alter outfile. (let* ((aname (match-string 2)) (to-file (if aname |