GNU bug report logs - #67768
Feature request: expand IELM working buffer's read-symbol shorthands

Previous Next

Package: emacs;

Reported by: Brandon Irizarry <brandon.irizarry <at> gmail.com>

Date: Mon, 11 Dec 2023 16:01:01 UTC

Severity: wishlist

To reply to this bug, email your comments to 67768 AT debbugs.gnu.org.

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#67768; Package emacs. (Mon, 11 Dec 2023 16:01:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brandon Irizarry <brandon.irizarry <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 11 Dec 2023 16:01:02 GMT) Full text and rfc822 format available.

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

From: Brandon Irizarry <brandon.irizarry <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Feature request: expand IELM working buffer's read-symbol shorthands
Date: Mon, 11 Dec 2023 10:59:48 -0500
[Message part 1 (text/plain, inline)]
I'm currently running Emacs master branch (I just pulled and rebuilt a few
minutes ago).

I think it would be nice if IELM let you use the read-symbol shorthands you
first defined
in the buffer you now set as your IELM working buffer.

For example, say I edit /tmp/example.el, in the buffer "example.el". It
contains
the following:

(symbol-name 't-foo)

;; Local Variables:
;; read-symbol-shorthands: (("t-" . "tmp-"))
;; End:

If I evaluate the call to symbol-name, I get "tmp-foo", which is expected.
Now, let's say I open IELM, and
set my working buffer to "example.el". I can evaluate
read-symbol-shorthands:

ELISP> read-symbol-shorthands
(("t-" . "tmp-"))

This makes sense, since these are the shorthands for the working buffer.
But I can't actually use them! For example,
if I evaluate (symbol-name 't-foo) in the IELM session, I get "t-foo".
Unlike, say, in the minibuffer, the shorthand
isn't expanded in this context.

Ideally, the shorthand should be expanded, and I should be able to get
completion for things that use shorthands, just
as I would in the original buffer.

What do folks think here?

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

This bug report was last modified 143 days ago.

Previous Next


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