help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Is it ok to sort a list of overlays destructively?


From: Marcin Borkowski
Subject: Re: Is it ok to sort a list of overlays destructively?
Date: Fri, 30 Jul 2021 21:27:01 +0200
User-agent: mu4e 1.1.0; emacs 28.0.50

On 2021-07-29, at 14:33, Eli Zaretskii <eliz@gnu.org> wrote:

>> From: John Yates <john@yates-sheets.org>
>> Date: Thu, 29 Jul 2021 07:34:07 -0400
>> Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
>> 
>> On Wed, Jul 28, 2021 at 7:44 AM Eli Zaretskii <eliz@gnu.org> wrote:
>> >
>> > Basically, you should assume that Emacs protects itself where that is
>> > needed, so if it handed you a list or some other data, and nothing in
>> > the doc string warns you against doing something with that data, you
>> > are free to do that, and if that causes unexpected results, there's
>> > either a documentation bug or a code bug that needs to be fixed.
>> 
>> I am not sure if such a statement exists in any of the manuals. Should
>> it not be stated explicitly somewhere?
>
> I don't think it should be, no.  It's pretty much obvious, IMO.

Eli,

thank you very much for all your input here.  After so many years with
Emacs and Elisp, I still learn a lot!

Thanks,

-- 
Marcin Borkowski
http://mbork.pl



reply via email to

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