GNU bug report logs - #50785
28.0.50; error doesn't use help-key-binding face from substitute-command-keys

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefan <at> marxist.se>

Date: Fri, 24 Sep 2021 18:34:02 UTC

Severity: minor

Found in version 28.0.50

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 50785 <at> debbugs.gnu.org
Subject: bug#50785: 28.0.50; error doesn't use help-key-binding face from substitute-command-keys
Date: Sat, 25 Sep 2021 04:03:36 +0200
Stefan Kangas <stefan <at> marxist.se> writes:

> 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.

Hm...  is `error' stripping text properties before displaying, by any
chance?  If so, is there any particular reason why that would make sense
in general?  Hm...  perhaps the idea is that `error' is used in
low-level circumstances, so we don't want to rely on faces etc actually
working?

Anybody know?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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

Previous Next


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