all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "João Távora" <joaotavora@gmail.com>,
	"Stefan Monnier" <monnier@iro.umontreal.ca>
Cc: joseph@ushin.org, 67325@debbugs.gnu.org, jonas@bernoul.li,
	public@protesilaos.com
Subject: bug#67325: shorthands: Incorrect autoloaded register-definition-prefixes
Date: Sun, 26 Nov 2023 20:07:15 +0200	[thread overview]
Message-ID: <83plzw9yng.fsf@gnu.org> (raw)
In-Reply-To: <CALDnm50k6xczW6biQyiHLg2tT2eHEWhkqGrvD8v-bcm9rrZwrw@mail.gmail.com> (message from João Távora on Sun, 26 Nov 2023 14:14:28 +0000)

> From: João Távora <joaotavora@gmail.com>
> Date: Sun, 26 Nov 2023 14:14:28 +0000
> Cc: Eli Zaretskii <eliz@gnu.org>, 67325@debbugs.gnu.org, public@protesilaos.com, 
> 	Jonas Bernoulli <jonas@bernoul.li>
> 
> On Sat, Nov 25, 2023 at 12:44 PM João Távora <joaotavora@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'?





  reply	other threads:[~2023-11-26 18:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-20 19:50 bug#67325: shorthands: Incorrect autoloaded register-definition-prefixes Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-24  8:06 ` Eli Zaretskii
2023-11-24  9:24   ` João Távora
2023-11-25  4:18     ` Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-25 12:44       ` João Távora
2023-11-26 14:14         ` João Távora
2023-11-26 18:07           ` Eli Zaretskii [this message]
2023-11-26 18:44             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-26 21:39               ` João Távora

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83plzw9yng.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=67325@debbugs.gnu.org \
    --cc=joaotavora@gmail.com \
    --cc=jonas@bernoul.li \
    --cc=joseph@ushin.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=public@protesilaos.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.