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: Tue, 27 Jul 2021 16:49:30 +0300

> From: Marcin Borkowski <mbork@mbork.pl>
> Date: Tue, 27 Jul 2021 07:22:42 +0200
> 
> I need to sort the list of overlays returned by `overlays-in'.  The docs
> for that function do not says explicitly that it creates a new list
> every time, although a cursory glance at its source says that it
> apparently does.

Yes, it's a list that is created specifically for this function, and
every time anew.  (Internally, overlays of a buffer aren't stored as a
single list, so returning anything but a copy would be impossible.)

The doc string kinda hints on that, since it talks about sorting the
list, which would be unthinkable if it were the internal storage.



reply via email to

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