GNU bug report logs - #59082
28.2; Undocumented `intern-soft` feature with shorthands symbols

Previous Next

Package: emacs;

Reported by: Thierry Volpiatto <thievol <at> posteo.net>

Date: Sun, 6 Nov 2022 20:26:02 UTC

Severity: normal

Found in version 28.2

Full log


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

From: João Távora <joaotavora <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: thievol <at> posteo.net, 59082 <at> debbugs.gnu.org
Subject: Re: bug#59082: 28.2; Undocumented `intern-soft` feature with
 shorthands symbols
Date: Sat, 12 Nov 2022 18:14:11 +0000
[Message part 1 (text/plain, inline)]
On Sat, Nov 12, 2022, 17:49 Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: João Távora <joaotavora <at> gmail.com>
> > Date: Sat, 12 Nov 2022 17:18:57 +0000
> > Cc: thievol <at> posteo.net, 59082 <at> debbugs.gnu.org
> >
> > Of course. And for blue the programmer
>

Sorry, it probably didn't help that this "for blue" slipped in when typing
on my phone.

> If the docstring reader is ever enhanced, then maybe programmers can
> refer to symbols there using
> > shorthands. Until then, shorthands are Lisp-only.
>
> I don't understand this response.  Are you saying that the problem
> doesn't exist, or are you saying that you just don't care?  Or are you
> saying something else?
>

I understand. I'm saying docstrings are outside the functional scope of
shorthands, so you should just use longhand there for now. Same as you must
use in M-x and other "global" contexts. Because shorthands are not new
names for symbols.

But I'm also saying that, perhaps, for the particular case of docstrings,
which are inherently file-local constructs, the "docstring reader",
whenever it lives, could be enhanced to allow shorthands, too. So the
intermediate representation of the  docstring mini-language could
understand that the text x-foo actually references the symbol xeno-foo. And
then C-h f would display the true symbol name as it usually does.

But this would basically be a new feature, not strictly necessary to enable
the things that shorthands are originally designed for. But convenient, for
sure.

João

>
[Message part 2 (text/html, inline)]

This bug report was last modified 2 years and 217 days ago.

Previous Next


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