GNU bug report logs - #67325
shorthands: Incorrect autoloaded register-definition-prefixes

Previous Next

Package: emacs;

Reported by: Joseph Turner <joseph <at> ushin.org>

Date: Tue, 21 Nov 2023 14:17:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: João Távora <joaotavora <at> gmail.com>, Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: joseph <at> ushin.org, 67325 <at> debbugs.gnu.org, jonas <at> bernoul.li, public <at> protesilaos.com
Subject: bug#67325: shorthands: Incorrect autoloaded register-definition-prefixes
Date: Sun, 26 Nov 2023 20:07:15 +0200
> From: João Távora <joaotavora <at> gmail.com>
> Date: Sun, 26 Nov 2023 14:14:28 +0000
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 67325 <at> debbugs.gnu.org, public <at> protesilaos.com, 
> 	Jonas Bernoulli <jonas <at> bernoul.li>
> 
> On Sat, Nov 25, 2023 at 12:44 PM João Távora <joaotavora <at> gmail.com> wrote:
> 
> Earlier I said that 'autoload-compute-prefixes' was completely
> undocumented.  I was wrong, it is documented in loading.texi
> and perfectly defined in loaddefs-gen.el.  No idea why
> I didn't notice.
> 
> It even has a sane local safety specification, but that safety
> specification is not pre-loaded, so opening files
> with 'autoload-compute-prefixes' local variables has
> the unfortunate effect of prompting the user sometimes.
> 
> I think this should be fixed maybe somewhere in the
> prompting logic.  Even describing the variable will cause
> loaddefs-gen.el to be loaded the file and thus the safety
> specification.
> 
> Another option is to store just safety specification
> for this variable somewhere else, so that it is preloaded.
> 
> Eli, any comments about the above ideas?

I agree that we should not prompt when the safety predicate is
satisfied, but I don't have any idea how to do that.  Maybe Stefan
does?  E.g., can the (put 'autoload-compute-prefixes 'safe-local-variable
form be put in 'autoload'?




This bug report was last modified 1 year and 204 days ago.

Previous Next


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