GNU bug report logs -
#35536
27.0.50; Expose buffer's marker list to Elisp
Previous Next
Reported by: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Date: Thu, 2 May 2019 15:46:01 UTC
Severity: wishlist
Tags: patch, wontfix
Found in version 27.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Drew Adams <drew.adams <at> oracle.com> writes:
>> When asked for a list of markers between BEG and END, it makes sense to
>> me to return a list which ascends from BEG to END.
> ^^^^^^^^^^^^^^^^^^^^^^^
> IOW, in buffer-position order.
Yes.
>> If it really matters, we could either return the
>> order of BUF_MARKERS unchanged,
>
> Unchanged from what?
From the order returned by BUF_MARKERS, i.e. the internal chain of
markers pointing to the current buffer. This order presumably reflects,
to an extent, the order in which markers were created/chained, but I'm
not sure about this.
>> or accept an additional argument which tells the
>> function how to sort.
>
> Have not really been following this thread, and
> not weighing in on whether such a function is
> needed or whether users need access to markers
> created by C.
>
> But as for the order of such a list: It's trivial
> for users (any Lisp code) to sort by buffer position
> or anything else, so why would the default order
> be by buffer position?
That is the order I would intuitively expect in any enumeration of a
partially ordered set of buffer artifacts in a given region, unless
otherwise stated.
What other order would make sense when talking about markers within a
given region?
> What's _not_ available to users or Lisp code, I
> think, is the order of marker creation or even the
> order of last setting. I'd think that
> marker-creation order (either direction) would be
> a better default sort order for this, no?
Perhaps when enumerating markers pointing at a single position, yes.
But I think that ordering would make less sense when talking about
markers within a given region. Assuming something like marker-list is
deemed a useful addition (which is not yet clear), perhaps there should
be two separate functions akin to overlays-in and overlays-at, with
different sorting options and/or default policies.
Thanks,
--
Basil
This bug report was last modified 5 years and 253 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.