emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should substitute-command-keys remove text properties of strings con


From: Eli Zaretskii
Subject: Re: Should substitute-command-keys remove text properties of strings containing quotes?
Date: Mon, 21 Dec 2015 19:18:23 +0200

> From: Clément Pit--Claudel <address@hidden>
> Date: Mon, 21 Dec 2015 11:38:59 -0500
> 
> In Emacs 25, substitute-command-keys removes text properties of strings 
> containing quotes. Is this expected?

Yes, expected.  Although it's not very nice, IMO.

> > In Emacs 25:
> (substitute-command-keys (propertize "`a'" 'prop 'val))
> "‘a’"
> 
> > In Emacs 24.5:
> (substitute-command-keys (propertize "`a'" 'prop 'val))
> #("`a'" 0 3 (prop val))

Anything that is substituted has its test properties removed:

  (substitute-command-keys (propertize "\\[forward-char]" 'prop 'val))
   => "C-f"

The above is from Emacs 24.5.

I think patches are welcome to reinstate the properties.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]