From: Yoni Rabkin Katzenell <yoni-r@actcom.com>
To: emacs-devel@gnu.org
Subject: Re: Uninformative comment in files.el
Date: Wed, 12 Dec 2007 16:22:01 +0200 [thread overview]
Message-ID: <8763z4t2ly.fsf@actcom.com> (raw)
In-Reply-To: <475FA723.9030607@gmx.at> (martin rudalics's message of "Wed, 12 Dec 2007 10:17:23 +0100")
martin rudalics <rudalics@gmx.at> writes:
>> After reading that thread (which I neglected to do beforehand, sorry)
>
> Not your fault. The TODO item should have included a link to that
> thread.
>
>> I still think that revert-buffer should remove all overlays and the mark.
>
> I think your patch is correct but am not sure about a number of related
> issues. For example, is auto-reverting affected by your change and
> how?
Good point, nothing comes to mind but I'd have to check that carefully
to answer.
> Is `remove-overlays' the right function to remove all overlays in a
> buffer or should we provide a simpler function that doesn't check
> overlay boundaries?
> Is `overlay-recenter' needed in this context?
Doing something like:
(save-excursion
(overlay-recenter (point-max))
(dolist (o (overlays-in (point-min) (point-max)))
(delete-overlay o)))
... might be enough to efficiently and unconditionally nuke all the
overlays in a buffer. I have no idea if the difference between that and
the `remove-overlays' code actually matters.
As for the rest of the questions, they are so far removed from my simple
patch that I should definitely not attempt to answer unless I intend to
do some homework beforehand. They require a breadth of Emacs knowledge I
don't have at the moment.
Maybe I'll prepare a better patch after looking all that stuff up (if
nobody beats me to it).
--
"Cut your own wood and it will warm you twice"
next prev parent reply other threads:[~2007-12-12 14:22 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-11 18:46 Uninformative comment in files.el Stefan Monnier
2007-12-11 20:55 ` Vinicius Jose Latorre
2007-12-11 22:05 ` martin rudalics
2007-12-12 2:22 ` Vinicius Jose Latorre
2007-12-12 6:31 ` Yoni Rabkin Katzenell
2007-12-12 9:17 ` martin rudalics
2007-12-12 14:22 ` Yoni Rabkin Katzenell [this message]
2007-12-12 12:28 ` Vinicius Jose Latorre
2007-12-12 15:20 ` Stefan Monnier
2007-12-12 15:41 ` Yoni Rabkin Katzenell
2007-12-13 16:51 ` Richard Stallman
2007-12-13 17:00 ` Stefan Monnier
2007-12-13 19:01 ` martin rudalics
2007-12-13 19:35 ` David Kastrup
2007-12-14 20:49 ` Richard Stallman
2007-12-14 20:49 ` Richard Stallman
2007-12-16 3:43 ` Stephen J. Turnbull
2007-12-17 8:24 ` Richard Stallman
[not found] ` <E1J2aRp-00010Y-QD@fencepost.gnu.org>
[not found] ` <476084A9.4010800@ig.com.br>
2007-12-14 10:10 ` Richard Stallman
2007-12-20 23:54 ` Stefan Monnier
2007-12-21 19:49 ` Richard Stallman
2007-12-23 0:57 ` Stefan Monnier
2007-12-12 22:52 ` Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8763z4t2ly.fsf@actcom.com \
--to=yoni-r@actcom.com \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).