GNU bug report logs - #62847
29.0.90; Propertized space in Org Agenda's mode-name

Previous Next

Package: emacs;

Reported by: Gustavo Barros <gusbrs.2016 <at> gmail.com>

Date: Fri, 14 Apr 2023 23:05:02 UTC

Severity: normal

Found in version 29.0.90

Full log


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

From: Ihor Radchenko <yantar92 <at> posteo.net>
To: Mattias EngdegÄrd <mattiase <at> acm.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 62847 <at> debbugs.gnu.org,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, gusbrs.2016 <at> gmail.com
Subject: Re: bug#62847: 29.0.90; Propertized space in Org Agenda's mode-name
Date: Sun, 16 Apr 2023 11:29:10 +0000
Mattias EngdegÄrd <mattiase <at> acm.org> writes:

> 15 apr. 2023 kl. 13.45 skrev Eli Zaretskii <eliz <at> gnu.org>:
>>>> 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>




This bug report was last modified 2 years and 63 days ago.

Previous Next


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