summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorAllen Li <darkfeline@felesatra.moe>2018-08-08 00:03:36 -0700
committerEli Zaretskii <eliz@gnu.org>2018-08-17 17:05:20 +0300
commit58e5f10f884f70faea2dc577e890ccc9e8c5d0f5 (patch)
tree9296951b91b3761773225c227e889fe71a570e35 /lisp/emacs-lisp
parent64eb9b71da7c3c34541929c1b0dfb7f0c11d3d88 (diff)
downloademacs-58e5f10f884f70faea2dc577e890ccc9e8c5d0f5.tar.gz
emacs-58e5f10f884f70faea2dc577e890ccc9e8c5d0f5.tar.bz2
emacs-58e5f10f884f70faea2dc577e890ccc9e8c5d0f5.zip
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)
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/autoload.el2
1 files changed, 1 insertions, 1 deletions
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)))))))