]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't include text properties when making autoloads
authorAllen Li <darkfeline@felesatra.moe>
Wed, 8 Aug 2018 07:03:36 +0000 (00:03 -0700)
committerEli Zaretskii <eliz@gnu.org>
Fri, 17 Aug 2018 14:05:20 +0000 (17:05 +0300)
* 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

index c458e7b1cb6ec279ede1eff5f836b699d50809af..efeb056204c1cebf10f6090394668ebd6f35fd1a 100644 (file)
@@ -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)))))))