emacs-devel
[Top][All Lists]
Advanced

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

Re: `aset` on strings, changing the size in bytes


From: Noam Postavsky
Subject: Re: `aset` on strings, changing the size in bytes
Date: Sun, 9 Sep 2018 10:44:25 -0400

On 9 September 2018 at 02:26, Eli Zaretskii <address@hidden> wrote:

>> Or we could define it to replace a substring:
>>
>>    (setq s (srep s from to newsubstring))
>
> Why not have aset do this under the hood?  Then we won't need to ask
> people to change code that worked for decades.

It's unclear what you mean by that, the semantics of aset is to modify
the original string, changing that would surely break code that worked
for decades.



reply via email to

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