Lars Ingebrigtsen [2022-06-04 18:46 +0200] wrote: > Daniel Fleischer writes: > >> Hi, I've noticed a possible bug where an ;;;###autoload directive is >> being read inside a documentation string of some `defvar` which didn't >> happen before. > > There shouldn't be any such doc string in the Emacs tree -- did you find > this problem with an external package? > > I've now made the scanner check whether it's inside a string (when > scanning outside of the Emacs build). Thanks, but git-bisect says this change had other fallout with package autoloads: e74652386d62a5a6142bf6332e0e4b4aa48c7088 is the first bad commit commit e74652386d62a5a6142bf6332e0e4b4aa48c7088 Author: Lars Ingebrigtsen Date: Sat Jun 4 18:41:10 2022 +0200 Make loaddefs-generate--parse-file more robust * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--parse-file): Ensure that we don't have an autoload cookie on the first column inside a string. Here's the recipe: $ cd "$(mktemp -d)" $ export HOME="$PWD" XDG_CONFIG_HOME="$PWD/.config" $ emacs -Q M-x package-install RET auctex RET C-x C-c $ emacs -Q -f toggle-debug-on-error -f package-initialize C-x C-f foo.tex RET Here's the backtrace: