|
From: | Glenn Morris |
Subject: | bug#17052: substitute-command-keys strips text properties |
Date: | Wed, 14 Aug 2019 21:34:47 -0400 |
User-agent: | Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Lars Ingebrigtsen wrote: > Looks like this has been fixed sometime in the intervening years? > > (substitute-command-keys (propertize "foo" 'face 'bold)) > => #("foo" 0 3 (face bold)) Nope, you need to use an example which does a substitution, eg (substitute-command-keys (propertize "foo \\[find-file]" 'face 'bold)) The doc of substitute-command-keys used to mention this, but it was somewhat prematurely removed in 049fac7.
[Prev in Thread] | Current Thread | [Next in Thread] |