all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: 50785@debbugs.gnu.org
Subject: bug#50785: 28.0.50; error doesn't use help-key-binding face from substitute-command-keys
Date: Fri, 24 Sep 2021 11:33:35 -0700	[thread overview]
Message-ID: <CADwFkmmDDUedcLyP_-FFAsGzTxH4Xj=k_=RJvwZ+KrJD_6_5eg@mail.gmail.com> (raw)

Severity: minor

In "emacs -Q", if I use the following function:

(defun foo ()
  (interactive)
  (error (substitute-command-keys "Use \\[next-line]")))

The error message says "Use C-n", but "C-n" is not displayed with the
`help-key-binding' face.

In contrast, `message' does not have this problem:

(defun foo2 ()
  (interactive)
  (message (substitute-command-keys "Use \\[next-line]")))

Here, "C-n" is displayed with the correct face.





             reply	other threads:[~2021-09-24 18:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-24 18:33 Stefan Kangas [this message]
2021-09-25  2:03 ` bug#50785: 28.0.50; error doesn't use help-key-binding face from substitute-command-keys Lars Ingebrigtsen
2022-08-29 16:29   ` Lars Ingebrigtsen
2022-08-29 17:32     ` Stefan Kangas
2022-08-30 10:25       ` Lars Ingebrigtsen

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='CADwFkmmDDUedcLyP_-FFAsGzTxH4Xj=k_=RJvwZ+KrJD_6_5eg@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=50785@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 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.