all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 50804@debbugs.gnu.org
Subject: bug#50804: Command substitutions for keys without keymaps
Date: Mon, 27 Sep 2021 17:41:51 -0700	[thread overview]
Message-ID: <CADwFkmnQg-zuGcZXEZV6OGWysTrB=gYmXjqWx0=w0L+vLKArnw@mail.gmail.com> (raw)
In-Reply-To: <877df3stzx.fsf@gnus.org>

Lars Ingebrigtsen <larsi@gnus.org> writes:

>> I'm not sure about the notation.  Perhaps "\\[[...]]" is okay, or
>> perhaps we want some other delimiter.
>
> What about...  \\`C-h'
>
> Hm.  Possibly too confusing.

Using some other delimiters than "\\[]" would probably be nice though,
because:

    (substitute-command-keys "\\[[C-h]]")
    => "M-x [C-h]"

    (substitute-command-keys "\\`C-h`")
    => "\\‘C-h‘"

The second one will be printed as "\‘C-h‘" on old versions, which isn't
perfect but not too bad.  Even if the extra "\" is distracting, it is at
least not actively misleading...





  reply	other threads:[~2021-09-28  0:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-25 18:01 bug#50804: Command substitutions for keys without keymaps Stefan Kangas
2021-09-26  6:58 ` Lars Ingebrigtsen
2021-09-28  0:41   ` Stefan Kangas [this message]
2021-09-28  5:27     ` Lars Ingebrigtsen
2021-11-20 15:05       ` Stefan Kangas
2021-11-21  8:26         ` Lars Ingebrigtsen
2021-11-21 13:35           ` Stefan Kangas
2021-11-21 19:56             ` Lars Ingebrigtsen
2021-11-22  5:48               ` Stefan Kangas
2021-11-22 15:10                 ` Eli Zaretskii
2021-11-22 15:15                   ` Eli Zaretskii
2021-11-22 15:29                     ` Stefan Kangas

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='CADwFkmnQg-zuGcZXEZV6OGWysTrB=gYmXjqWx0=w0L+vLKArnw@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=50804@debbugs.gnu.org \
    --cc=larsi@gnus.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 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.