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 08:31:32 +0200 [thread overview]
Message-ID: <87mysg1l17.fsf@actcom.com> (raw)
In-Reply-To: <475F45EB.2070704@ig.com.br> (Vinicius Jose Latorre's message of "Tue, 11 Dec 2007 23:22:35 -0300")
Vinicius Jose Latorre <viniciusjl@ig.com.br> writes:
> martin rudalics wrote:
>>>> Could whoever installed the following change:
>>>>
>>>> 2007-12-10 Yoni Rabkin Katzenell <yoni-r@actcom.com> (tiny
>>>> change)
>>>> * file.el (revert-buffer): Eliminate overlays and the mark.
>>>>
>>>> replace the comment "Reset the mark and remove all overlays" which just
>>>> paraphrases the code, with a comment that actually explains why we
>>>> want/need to do that?
>>>>
>>>
>>>
>>> This is not explained in etc/TODO file.
>>>
>>> The patch refers to this line in etc/TODO file:
>>>
>>> ** revert-buffer should eliminate overlays and the mark.
>>>
>>>
>>> Does anyone know why this is necessary?
>>
>> I'm afraid the patch installed is overly simplistic. You can find out
>> more by looking at the thread starting with
>>
>> http://lists.gnu.org/archive/html/emacs-devel/2005-11/msg01346.html
>>
>> For the moment I'd strongly propose to revert the change and study the
>> problem in more depth.
>
> Ok, I've read the thread. Indeed, the problem is not so simple.
>
> I've just undone the patch in CVS trunk.
After reading that thread (which I neglected to do beforehand, sorry) I
still think that revert-buffer should remove all overlays and the mark.
My reasoning is based on the way revert-buffer is implemented, which is
to work for a simple default scenario, and to hand off any more complex
reverting to other modes via `revert-buffer-function', which replaces
revert-buffer's actions entirely if defined. For this reason, I don't
see any one fix which would solve the problem for all modes.
In any case, could you please install the docstring portion of the
patch? It is a better description of what `revert-buffer-function'
does. If needed, I can send in a patch which does only that.
--
"Cut your own wood and it will warm you twice"
next prev parent reply other threads:[~2007-12-12 6:31 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 [this message]
2007-12-12 9:17 ` martin rudalics
2007-12-12 14:22 ` Yoni Rabkin Katzenell
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=87mysg1l17.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).