]> git.eshelyaron.com Git - emacs.git/commitdiff
Let autoload-compute-prefix be set file-locally (Bug#29471)
authorNoam Postavsky <npostavs@gmail.com>
Mon, 27 Nov 2017 12:26:10 +0000 (07:26 -0500)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 2 Dec 2017 14:35:44 +0000 (09:35 -0500)
* lisp/emacs-lisp/autoload.el (autoload-compute-prefixes): Mark
boolean values as safe.

lisp/emacs-lisp/autoload.el

index 7299ae9d2037020182869a9446a3b727afd5fa55..71fc51e27b0095fb1cd065d701815ee46999b4e4 100644 (file)
@@ -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.