[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 31395511: "Don’t attempt to modify constant strings"
From: |
Basil L. Contovounesios |
Subject: |
Re: 31395511: "Don’t attempt to modify constant strings" |
Date: |
Thu, 04 Jun 2020 23:33:03 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Paul Eggert <eggert@cs.ucla.edu> writes:
> On 6/4/20 4:11 AM, Basil L. Contovounesios wrote:
>
>> Would it not suffice to clarify in its documentation that it modifies
>> its argument, in the same way that we warn about passing immutable lists
>> to nconc?
>
> We could do that, yes. Some code passes string literals to make-text-button,
> though, and we'd need to change it. The first example I found was
> ibuf-ext.el's
> ibuffer-old-saved-filters-warning, which calls (make-text-button "here" ...).
> Such code is already "broken" in some sense, so we'll need to fix it anyway
> somehow.
Thanks, that should be fixed now:
Fix some side-effecting uses of make-text-button
f51f963478 2020-06-04 23:30:34 +0100
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=f51f9634788323b3bf2dde59d0d20a8ca8fbfeaf
--
Basil
- Re: 31395511: "Don’t attempt to modify constant strings", (continued)
- Re: 31395511: "Don’t attempt to modify constant strings", Paul Eggert, 2020/06/04
- Re: 31395511: "Don’t attempt to modify constant strings", Clément Pit-Claudel, 2020/06/04
- Re: 31395511: "Don’t attempt to modify constant strings", Paul Eggert, 2020/06/05
- Re: 31395511: "Don’t attempt to modify constant strings", Stefan Monnier, 2020/06/05
- RE: 31395511: "Don’t attempt to modify constant strings", Drew Adams, 2020/06/05
- Re: 31395511: "Don’t attempt to modify constant strings", Pip Cet, 2020/06/05
- Re: 31395511: "Don’t attempt to modify constant strings", Paul Eggert, 2020/06/05
- Re: 31395511: "Don’t attempt to modify constant strings",
Basil L. Contovounesios <=
- Re: 31395511: "Don’t attempt to modify constant strings", João Távora, 2020/06/05
- Re: 31395511: "Don’t attempt to modify constant strings", Dmitry Gutov, 2020/06/05
- Re: 31395511: "Don’t attempt to modify constant strings", João Távora, 2020/06/05
- Re: 31395511: "Don’t attempt to modify constant strings", Dmitry Gutov, 2020/06/05
- FW: 31395511: "Don’t attempt to modify constant strings", Drew Adams, 2020/06/05
- RE: 31395511: "Don’t attempt to modify constant strings", Drew Adams, 2020/06/05
- Re: 31395511: "Don’t attempt to modify constant strings", Paul Eggert, 2020/06/05
- Re: 31395511: "Donât attempt to modify constant strings", Richard Stallman, 2020/06/06
- Re: 31395511: "Don’t attempt to modify constant strings", João Távora, 2020/06/06
- Re: 31395511: "Don’t attempt to modify constant strings", João Távora, 2020/06/06