Subject: 26.0.90; [PATCH] Let autoload-compute-prefix be set file-locally

From: Noam Postavsky <[email-masked]>
Date: Mon, 27 Nov 2017 07:45:23 -0500

Tags: patch
Severity: minor

Motivating example is elpa/packages/yasnippet/yasnippet-debug.el for
which it doesn't make sense to register autoload prefixes.

>From a1c9f1768463f44e155b963bd8af26ea29e7dcfb Mon Sep 17 00:00:00 2001
From: Noam Postavsky <[email-masked]>
Date: Mon, 27 Nov 2017 07:26:10 -0500
Subject: [PATCH] Let autoload-compute-prefix be set file-locally

* lisp/emacs-lisp/autoload.el (autoload-compute-prefixes): Mark
boolean values as safe.
---
 lisp/emacs-lisp/autoload.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index 27426c4530..a18e7fa4a9 100644
--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -497,6 +497,7 @@ autoload-compute-prefixes
 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.
-- 
2.11.0