unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#29471: 26.0.90; [PATCH] Let autoload-compute-prefix be set file-locally
@ 2017-11-27 12:45 Noam Postavsky
  2017-12-02 14:55 ` Noam Postavsky
  0 siblings, 1 reply; 2+ messages in thread
From: Noam Postavsky @ 2017-11-27 12:45 UTC (permalink / raw)
  To: 29471

[-- Attachment #1: Type: text/plain, Size: 158 bytes --]

Tags: patch
Severity: minor

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 981 bytes --]

From a1c9f1768463f44e155b963bd8af26ea29e7dcfb Mon Sep 17 00:00:00 2001
From: Noam Postavsky <npostavs@gmail.com>
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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#29471: 26.0.90; [PATCH] Let autoload-compute-prefix be set file-locally
  2017-11-27 12:45 bug#29471: 26.0.90; [PATCH] Let autoload-compute-prefix be set file-locally Noam Postavsky
@ 2017-12-02 14:55 ` Noam Postavsky
  0 siblings, 0 replies; 2+ messages in thread
From: Noam Postavsky @ 2017-12-02 14:55 UTC (permalink / raw)
  To: 29471

tags 29471 fixed
close 29471 26.1
quit

Pushed to emacs-26.

[1: 8227087194]: 2017-12-02 09:35:44 -0500
  Let autoload-compute-prefix be set file-locally (Bug#29471)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=8227087194e0817b984ce3b15099f5eae4dc011c





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-02 14:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-27 12:45 bug#29471: 26.0.90; [PATCH] Let autoload-compute-prefix be set file-locally Noam Postavsky
2017-12-02 14:55 ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).