From: Eli Zaretskii <eliz@gnu.org>
To: 28595@debbugs.gnu.org, clement.pitclaudel@live.com
Subject: bug#28595: In mode-line-format, `:propertize' drops some existing text properties
Date: Mon, 25 Sep 2017 19:52:57 +0100 [thread overview]
Message-ID: <995E7EA6-7B19-4FC0-8DA9-2CCD40283643@gnu.org> (raw)
In-Reply-To: <5fc2a28b-84e2-ad99-b0ea-47829ecceb11@live.com>
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.
next prev parent reply other threads:[~2017-09-25 18:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2017-09-25 23:10 ` Clément Pit--Claudel
2017-09-29 12:27 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=995E7EA6-7B19-4FC0-8DA9-2CCD40283643@gnu.org \
--to=eliz@gnu.org \
--cc=28595@debbugs.gnu.org \
--cc=clement.pitclaudel@live.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.