From: Eli Zaretskii <eliz@gnu.org>
To: "Clément Pit--Claudel" <clement.pitclaudel@live.com>
Cc: 25592@debbugs.gnu.org
Subject: bug#25592: Feature request: sorting overlays
Date: Fri, 03 Feb 2017 23:17:58 +0200 [thread overview]
Message-ID: <83tw8bt1mh.fsf@gnu.org> (raw)
In-Reply-To: <bc1156e7-e74b-0b2c-7cad-fcee6324de12@live.com> (message from Clément Pit--Claudel on Fri, 3 Feb 2017 10:19:15 -0500)
> Cc: 25592@debbugs.gnu.org
> From: Clément Pit--Claudel <clement.pitclaudel@live.com>
> Date: Fri, 3 Feb 2017 10:19:15 -0500
>
> >> I'm writing a function that copies overlay properties to text properties.
> >
> > That function probably converts overlays by traversing buffer
> > positions from beginning to end, no? Then overlays-at should be what
> > you need, and next-overlay-change is your friend to move to the next
> > "interesting" position when you are done with this one.
> >
> > Isn't that what you are doing?
>
> No: I'm iterating over all overlays, and applying them one by one.
Why not do it as I suggest? Then your problems with sorting will be
solved as a nice side-effect.
> >> I reimplemented compare_overlays in ELisp, but that seems brittle.
> >
> > How did you implement in Lisp the "last resort" of comparison, which
> > compares addresses of the C structs?
>
> I didn't :)
So it isn't really a solution ;-)
next prev parent reply other threads:[~2017-02-03 21:17 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-31 20:32 bug#25592: Feature request: sorting overlays Clément Pit--Claudel
2017-02-01 13:01 ` Eli Zaretskii
2017-02-02 19:41 ` Clément Pit--Claudel
2017-02-02 20:43 ` Eli Zaretskii
2017-02-03 15:19 ` Clément Pit--Claudel
2017-02-03 21:17 ` Eli Zaretskii [this message]
2017-02-03 21:51 ` Clément Pit--Claudel
2017-02-04 8:13 ` Eli Zaretskii
2017-02-05 16:21 ` Clément Pit--Claudel
2017-02-05 18:28 ` Eli Zaretskii
2017-02-05 19:10 ` Clément Pit--Claudel
2017-02-05 19:43 ` Eli Zaretskii
2017-02-05 19:51 ` Clément Pit--Claudel
2017-02-07 17:13 ` Eli Zaretskii
2017-02-07 19:17 ` Clément Pit--Claudel
2017-02-07 19:56 ` Eli Zaretskii
2017-02-07 20:07 ` Clément Pit--Claudel
2017-02-08 17:22 ` Eli Zaretskii
2017-02-09 19:50 ` Clément Pit--Claudel
2017-02-03 23:28 ` Johan Bockgård
2017-02-04 8:29 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83tw8bt1mh.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=25592@debbugs.gnu.org \
--cc=clement.pitclaudel@live.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.