emacs-devel
[Top][All Lists]
Advanced

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

Re: Difficulties with `purecopy' discarding text properties from strings


From: Stefan Monnier
Subject: Re: Difficulties with `purecopy' discarding text properties from strings
Date: Fri, 19 May 2017 22:58:00 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

>           (const :tag "\"%q\": Offsets of both top and bottom of window"
>                  (,(mode-line-%-propertize "%q"))))
[...]
>> Or am I missing something?
> purecopy is applied to the entire type: argument.

I see, the problem I was missing is that the :type part contains values
rather than expressions.

BTW, another option is to use the (:propertize ...) mode-line element.
It could be placed in mode-line-format around the use of
mode-line-percent-position, so that mode-line-percent-position can just
be a non-propertized string.


        Stefan




reply via email to

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