GNU bug report logs - #29471
26.0.90; [PATCH] Let autoload-compute-prefix be set file-locally

Previous Next

Package: emacs;

Reported by: Noam Postavsky <npostavs <at> users.sourceforge.net>

Date: Mon, 27 Nov 2017 12:46:01 UTC

Severity: minor

Tags: fixed, patch

Found in version 26.0.90

Fixed in version 26.1

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29471 in the body.
You can then email your comments to 29471 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#29471; Package emacs. (Mon, 27 Nov 2017 12:46:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Noam Postavsky <npostavs <at> users.sourceforge.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 27 Nov 2017 12:46:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.90; [PATCH] Let autoload-compute-prefix be set file-locally
Date: Mon, 27 Nov 2017 07:45:23 -0500
[Message part 1 (text/plain, inline)]
Tags: patch
Severity: minor

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

[0001-Let-autoload-compute-prefix-be-set-file-locally.patch (text/x-diff, inline)]
From a1c9f1768463f44e155b963bd8af26ea29e7dcfb Mon Sep 17 00:00:00 2001
From: Noam Postavsky <npostavs <at> 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


Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#29471; Package emacs. (Sat, 02 Dec 2017 14:56:02 GMT) Full text and rfc822 format available.

Message #8 received at 29471 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: 29471 <at> debbugs.gnu.org
Subject: Re: bug#29471: 26.0.90;
 [PATCH] Let autoload-compute-prefix be set file-locally
Date: Sat, 02 Dec 2017 09:55:21 -0500
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




Added tag(s) fixed. Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Sat, 02 Dec 2017 14:56:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 26.1, send any further explanations to 29471 <at> debbugs.gnu.org and Noam Postavsky <npostavs <at> users.sourceforge.net> Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Sat, 02 Dec 2017 14:56:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 31 Dec 2017 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 251 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.