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: Eli Zaretskii
Subject: Re: Is it ok to sort a list of overlays destructively?
Date: Thu, 29 Jul 2021 15:33:23 +0300

> 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.



reply via email to

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