From: Allen Li Date: Wed, 8 Aug 2018 07:03:36 +0000 (-0700) Subject: Don't include text properties when making autoloads X-Git-Tag: emacs-27.0.90~4552 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=58e5f10f884f70faea2dc577e890ccc9e8c5d0f5;p=emacs.git Don't include text properties when making autoloads * lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads): Ignore text properties when finding autoload defs. Otherwise, autoload generation is less deterministic, as the exact format of the generated autoloads depends on whether the files are visited in Emacs. (Bug#32395) --- diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index c458e7b1cb6..efeb056204c 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -768,7 +768,7 @@ FILE's modification time." "define-erc-module" "define-erc-response-handler" "defun-rcirc-command")))) - (push (match-string 2) defs)) + (push (match-string-no-properties 2) defs)) (forward-sexp 1) (forward-line 1)))))))