GNU bug report logs - #79485
31.0.50; Loaded files inherit read-symbol-shorthands

Previous Next

Package: emacs;

Reported by: "David J. Rosenbaum" <djr7c4 <at> gmail.com>

Date: Sun, 21 Sep 2025 23:59:01 UTC

Severity: normal

Found in version 31.0.50

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: David Rosenbaum <djr7c4 <at> gmail.com>
Cc: 79485 <at> debbugs.gnu.org, joaotavora <at> gmail.com
Subject: Re: bug#79485: 31.0.50; Loaded files inherit read-symbol-shorthands
Date: Tue, 23 Sep 2025 09:25:01 +0300
> From: David Rosenbaum <djr7c4 <at> gmail.com>
> Date: Mon, 22 Sep 2025 15:17:48 -0700
> Cc: joaotavora <at> gmail.com, 79485 <at> debbugs.gnu.org
> 
> I think package authors are already aware that all prefixes will be replaced. It's just that there don't seem to
> be good alternatives for dealing with these sorts of namespace issues as all the options have downsides.
> 
> I already mentioned what I wrote below but I forgot to reply all and also may not have been particularly clear
> anyway so I'll try again.
> 
> My preferred solution would be to make a special character cause the whole symbol to be matched instead
> of just the prefix. # is already not readable at the start of a symbol so it seems like that wouldn't cause
> conflicts. For example:
> 
> ;; read-symbol-shorthands: (
> ;; ("mvlp-" . "my-very-long-prefix-")
> ;; ("#db" . "cl-destructuring-bind"))
> 
> The idea is that "db" is only replaced when it matches the entire symbol due to the #. "mvlp-" on the other
> hand is replaced whenever it occurs as the prefix of a symbol.

I think we should wait with enhancements until after the bug mentioned
by João is fixed.




This bug report was last modified today.

Previous Next


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