GNU bug report logs - #28595
In mode-line-format, `:propertize' drops some existing text properties

Previous Next

Package: emacs;

Reported by: Clément Pit--Claudel <clement.pitclaudel <at> live.com>

Date: Mon, 25 Sep 2017 12:48:02 UTC

Severity: minor

Tags: moreinfo

Merged with 26291

Found in version 26.0.60

Fixed in version 26.1

Done: Clément Pit--Claudel <clement.pitclaudel <at> live.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28595 in the body.
You can then email your comments to 28595 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#28595; Package emacs. (Mon, 25 Sep 2017 12:48:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Clément Pit--Claudel <clement.pitclaudel <at> live.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 25 Sep 2017 12:48:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Clément Pit--Claudel <clement.pitclaudel <at> live.com>
To: bug-gnu-emacs <at> gnu.org
Subject: In mode-line-format, `:propertize' drops some existing text properties
Date: Sun, 24 Sep 2017 15:03:02 +0200
[Message part 1 (text/plain, inline)]
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.

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28595; Package emacs. (Mon, 25 Sep 2017 18:54:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org,
 Clément Pit--Claudel <clement.pitclaudel <at> live.com>,
 28595 <at> debbugs.gnu.org
Subject: Re: bug#28595: In mode-line-format,
 `:propertize' drops some existing text properties
Date: Mon, 25 Sep 2017 19:52:57 +0100
On September 24, 2017 2:03:02 PM GMT+01:00, "Clément Pit--Claudel" <clement.pitclaudel <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28595; Package emacs. (Mon, 25 Sep 2017 18:54:02 GMT) Full text and rfc822 format available.

Forcibly Merged 26291 28595. Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Tue, 26 Sep 2017 00:20:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28595; Package emacs. (Tue, 26 Sep 2017 14:34:01 GMT) Full text and rfc822 format available.

Message #16 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Clément Pit--Claudel <clement.pitclaudel <at> live.com>
To: Eli Zaretskii <eliz <at> gnu.org>, bug-gnu-emacs <at> gnu.org,
 28595-done <at> debbugs.gnu.org
Subject: Re: bug#28595: In mode-line-format, `:propertize' drops some existing
 text properties
Date: Tue, 26 Sep 2017 01:10:40 +0200
[Message part 1 (text/plain, inline)]
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 <at> 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.

[signature.asc (application/pgp-signature, attachment)]

Reply sent to Clément Pit--Claudel <clement.pitclaudel <at> live.com>:
You have taken responsibility. (Tue, 26 Sep 2017 14:34:02 GMT) Full text and rfc822 format available.

Notification sent to Clément Pit--Claudel <clement.pitclaudel <at> live.com>:
bug acknowledged by developer. (Tue, 26 Sep 2017 14:34:02 GMT) Full text and rfc822 format available.

Reply sent to Clément Pit--Claudel <clement.pitclaudel <at> live.com>:
You have taken responsibility. (Tue, 26 Sep 2017 14:34:02 GMT) Full text and rfc822 format available.

Notification sent to Clément Pit-Claudel <cpitclaudel <at> gmail.com>:
bug acknowledged by developer. (Tue, 26 Sep 2017 14:34:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28595; Package emacs. (Fri, 29 Sep 2017 12:29:02 GMT) Full text and rfc822 format available.

Message #29 received at 28595 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Clément Pit--Claudel <clement.pitclaudel <at> live.com>
Cc: 28595 <at> debbugs.gnu.org
Subject: Re: bug#28595: In mode-line-format, `:propertize' drops some existing
 text properties
Date: Fri, 29 Sep 2017 15:27:54 +0300
> From: Clément Pit--Claudel <clement.pitclaudel <at> 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?




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 28 Oct 2017 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 239 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.