unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Brandon Irizarry <brandon.irizarry@gmail.com>
To: 67768@debbugs.gnu.org
Subject: bug#67768: Feature request: expand IELM working buffer's read-symbol shorthands
Date: Mon, 11 Dec 2023 10:59:48 -0500	[thread overview]
Message-ID: <CAJm+nuH5z_JkYh_V+vv7R3aHUDdr+tKfpKhPk=zs0+C7HQOW+g@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1123 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1599 bytes --]

                 reply	other threads:[~2023-12-11 15:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='CAJm+nuH5z_JkYh_V+vv7R3aHUDdr+tKfpKhPk=zs0+C7HQOW+g@mail.gmail.com' \
    --to=brandon.irizarry@gmail.com \
    --cc=67768@debbugs.gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).