From 58e5f10f884f70faea2dc577e890ccc9e8c5d0f5 Mon Sep 17 00:00:00 2001 From: Allen Li Date: Wed, 8 Aug 2018 00:03:36 -0700 Subject: [PATCH] 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) --- lisp/emacs-lisp/autoload.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))))))) -- 2.39.2