emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#28595: closed (In mode-line-format, `:propertize'


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#28595: closed (In mode-line-format, `:propertize' drops some existing text properties)
Date: Tue, 26 Sep 2017 14:34:02 +0000

Your message dated Tue, 26 Sep 2017 01:10:40 +0200
with message-id <address@hidden>
and subject line Re: bug#28595: In mode-line-format, `:propertize' drops some 
existing text properties
has caused the debbugs.gnu.org bug report #28595,
regarding In mode-line-format, `:propertize' drops some existing text properties
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
28595: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=28595
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: In mode-line-format, `:propertize' drops some existing text properties Date: Sun, 24 Sep 2017 15:03:02 +0200 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
Hi all,

Based on the docs, the three following forms should yield the same results:

(format-mode-line `(:propertize #("AB" 1 2 (x 0)) y 0))
(format-mode-line `(:propertize ("A" #("B" 0 1 (x 0))) y 0))
(format-mode-line '(:propertize ("A" (:propertize "B" x 0)) y 0))

But they don't:

(format-mode-line `(:propertize #("AB" 1 2 (x 0)) y 0))
=> #("AB" 0 2 (y 0)) ;; x 0 is dropped

(format-mode-line '(:propertize ("A" (:propertize "B" x 0)) y 0))
⇒ #("AB" 0 1 (y 0) 1 2 (x 0)) ;; y 0 is dropped on 1..2

(format-mode-line `(:propertize ("A" #("B" 0 1 (x 0))) y 0))
⇒ #("AB" 0 1 (y 0) 1 2 (y 0 x 0)) ;; Seems right

Am I misreading the docs?
Clément.

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message --- Subject: Re: bug#28595: In mode-line-format, `:propertize' drops some existing text properties Date: Tue, 26 Sep 2017 01:10:40 +0200 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
On 2017-09-25 20:52, Eli Zaretskii wrote:
> On September 24, 2017 2:03:02 PM GMT+01:00, "Clément Pit--Claudel" 
> <address@hidden> wrote:
>> Hi all,
>>
>> Based on the docs, the three following forms should yield the same
>> results:
>>
>> (format-mode-line `(:propertize #("AB" 1 2 (x 0)) y 0))
>> (format-mode-line `(:propertize ("A" #("B" 0 1 (x 0))) y 0))
>> (format-mode-line '(:propertize ("A" (:propertize "B" x 0)) y 0))
>>
>> But they don't:
>>
>> (format-mode-line `(:propertize #("AB" 1 2 (x 0)) y 0))
>> => #("AB" 0 2 (y 0)) ;; x 0 is dropped
>>
>> (format-mode-line '(:propertize ("A" (:propertize "B" x 0)) y 0))
>> ⇒ #("AB" 0 1 (y 0) 1 2 (x 0)) ;; y 0 is dropped on 1..2
>>
>> (format-mode-line `(:propertize ("A" #("B" 0 1 (x 0))) y 0))
>> ⇒ #("AB" 0 1 (y 0) 1 2 (y 0 x 0)) ;; Seems right
>>
>> Am I misreading the docs?
>> Clément.
> 
> You already asked the same in bug#26291.

Ouch. Sorry.

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

reply via email to

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