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: Alan Mackenzie
Subject: Re: Difficulties with `purecopy' discarding text properties from strings
Date: Sat, 20 May 2017 10:40:47 +0000
User-agent: Mutt/1.5.24 (2015-08-30)

Hello, Stefan.

On Fri, May 19, 2017 at 22:58:00 -0400, Stefan Monnier wrote:
> >           (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.

Thank you indeed.  That is what I have now done.

>         Stefan

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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