Subject: Re: bug#17052: substitute-command-keys strips text properties

From: Glenn Morris <[email-masked]>
Date: Wed, 14 Aug 2019 21:34:47 -0400

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.