* bug#28595: In mode-line-format, `:propertize' drops some existing text properties
@ 2017-09-24 13:03 Clément Pit--Claudel
2017-09-25 18:52 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Clément Pit--Claudel @ 2017-09-24 13:03 UTC (permalink / raw)
To: 28595
[-- Attachment #1.1: Type: text/plain, Size: 680 bytes --]
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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#28595: In mode-line-format, `:propertize' drops some existing text properties
2017-09-24 13:03 bug#28595: In mode-line-format, `:propertize' drops some existing text properties Clément Pit--Claudel
@ 2017-09-25 18:52 ` Eli Zaretskii
2017-09-25 23:10 ` Clément Pit--Claudel
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2017-09-25 18:52 UTC (permalink / raw)
To: 28595, clement.pitclaudel
On September 24, 2017 2:03:02 PM GMT+01:00, "Clément Pit--Claudel" <clement.pitclaudel@live.com> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#28595: In mode-line-format, `:propertize' drops some existing text properties
2017-09-25 18:52 ` Eli Zaretskii
@ 2017-09-25 23:10 ` Clément Pit--Claudel
2017-09-29 12:27 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Clément Pit--Claudel @ 2017-09-25 23:10 UTC (permalink / raw)
To: Eli Zaretskii, bug-gnu-emacs, 28595-done
[-- Attachment #1.1: Type: text/plain, Size: 955 bytes --]
On 2017-09-25 20:52, Eli Zaretskii wrote:
> On September 24, 2017 2:03:02 PM GMT+01:00, "Clément Pit--Claudel" <clement.pitclaudel@live.com> 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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#28595: In mode-line-format, `:propertize' drops some existing text properties
2017-09-25 23:10 ` Clément Pit--Claudel
@ 2017-09-29 12:27 ` Eli Zaretskii
0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2017-09-29 12:27 UTC (permalink / raw)
To: Clément Pit--Claudel; +Cc: 28595
> From: Clément Pit--Claudel <clement.pitclaudel@live.com>
> Date: Tue, 26 Sep 2017 01:10:40 +0200
>
> > You already asked the same in bug#26291.
>
> Ouch. Sorry.
No sweat.
Btw, I asked a follow-up question there, but got no responses. Does
that mean your problem is solved?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-09-29 12:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-24 13:03 bug#28595: In mode-line-format, `:propertize' drops some existing text properties Clément Pit--Claudel
2017-09-25 18:52 ` Eli Zaretskii
2017-09-25 23:10 ` Clément Pit--Claudel
2017-09-29 12:27 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).