Subject: bug#62847: 29.0.90; Propertized space in Org Agenda's mode-name

From: Ihor Radchenko <[email-masked]>
Date: Sun, 16 Apr 2023 11:29:10 +0000

Mattias Engdegård <[email-masked]> writes:

> 15 apr. 2023 kl. 13.45 skrev Eli Zaretskii <[email-masked]>:
>>>> So maybe replace " " with (copy-sequence " ").
>>> 
>>> But that should not be necessary, right?
>
> Ideally not -- setting properties on literal strings should indeed be avoided for a variety of reasons, one being that the byte compiler shares equal string literals:

Thanks for the clarification!
I am wondering if there is any relevant warning raised by the byte
compiler when doing something like
 (let ((str " ")) (add-text-properties 0 1 '(foo bar) str))

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>