GNU bug report logs - #17052
substitute-command-keys strips text properties

Previous Next

Package: emacs;

Reported by: Juanma Barranquero <lekktu <at> gmail.com>

Date: Thu, 20 Mar 2014 16:23:01 UTC

Severity: wishlist

Fixed in version 28.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Juanma Barranquero <lekktu <at> gmail.com>, 17052 <at> debbugs.gnu.org
Subject: bug#17052: substitute-command-keys strips text properties
Date: Wed, 14 Aug 2019 18:58:57 -0700
Glenn Morris <rgm <at> gnu.org> writes:

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

Ah, I see.  I've now reopened the bug report again.

> The doc of substitute-command-keys used to mention this, but it was
> somewhat prematurely removed in 049fac7.

Heh, heh:

    (Fsubstitute_command_keys): Don't advertise the fact that
    text-properties are dropped, since we think it's a bug that we'll fix
    in 24.5.

Should I just put it back in the doc string, or do we still think that
we'll fix it?

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




This bug report was last modified 4 years and 192 days ago.

Previous Next


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