summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorNoam Postavsky <npostavs@gmail.com>2017-11-27 07:26:10 -0500
committerNoam Postavsky <npostavs@gmail.com>2017-12-02 09:35:44 -0500
commit8227087194e0817b984ce3b15099f5eae4dc011c (patch)
treeba6b685eb3da3b48e6159355134a5d6af143084a /lisp/emacs-lisp
parent98ca7d5f26f5bdde44864c7f24dafb6725fca09f (diff)
downloademacs-8227087194e0817b984ce3b15099f5eae4dc011c.tar.gz
emacs-8227087194e0817b984ce3b15099f5eae4dc011c.tar.bz2
emacs-8227087194e0817b984ce3b15099f5eae4dc011c.zip
Let autoload-compute-prefix be set file-locally (Bug#29471)
* lisp/emacs-lisp/autoload.el (autoload-compute-prefixes): Mark boolean values as safe.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/autoload.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index 7299ae9d203..71fc51e27b0 100644
--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -497,6 +497,7 @@ Return non-nil in the case where no autoloads were added at point."
Standard prefixes won't be registered anyway. I.e. if a file \"foo.el\" defines
variables or functions that use \"foo-\" as prefix, that will not be registered.
But all other prefixes will be included.")
+(put 'autoload-compute-prefixes 'safe #'booleanp)
(defconst autoload-def-prefixes-max-entries 5
"Target length of the list of definition prefixes per file.