emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master f51f963: Fix some side-effecting uses of make-text-button


From: Stefan Monnier
Subject: Re: master f51f963: Fix some side-effecting uses of make-text-button
Date: Sun, 07 Jun 2020 11:24:15 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> That makes me think there's been a fairly concrete proposal that has
>> been made and which I missed (since otherwise, it seems unclear how
>> you'd get to these conclusions).  Can someone point me to it?
> There's no concrete proposal yet, in terms of published code. That being said,
> my idea is to change the Elisp interpreter to distinguish constant from 
> mutable
> strings, and to have a runtime check in the few primitives (notably aset) that
> modify strings.

Right, this loos like the easy part.

> String literals yield constant strings when evaluated.

This seems less obvious.  How do you do that?

[ I terms of semantics, I guess for strings it's fine but I can imagine
  some surprises if we try to apply the same idea to some
  other literals.  ]


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]