From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Suggestion for autorevert.el
Date: Thu, 1 Apr 2004 18:11:19 -0600 (CST) [thread overview]
Message-ID: <200404020011.i320BJT24024@raven.dms.auburn.edu> (raw)
In-Reply-To: <87vfktj86f.fsf@offby1.atm01.sea.blarg.net> (message from Eric Hanchrow on Thu, 25 Mar 2004 06:46:48 -0800)
Eric Hanchrow wrote:
`File: emacs, Node: Reverting' says ``revert-buffer' keeps point at
the same distance (measured in characters) from the beginning of
the file.'
Which is wrong (or obsolete). To see that it is wrong, save a file
"myfile" with only content "123456789" and position point in the
buffer on the `6'. Then do `echo abcdefghi > myfile' from a shell.
Then revert. If the above description were accurate, point would be
on the letter `f'. Instead, it is at the beginning of the buffer.
Maybe accurately explaining the actual positioning algorithm could be
somewhat too technical for the Emacs manual. The present (highly)
simplified description seems very misleadingly precise. What about
staying more "clearly vague"? I can install the patch below if
desired. Note that we are talking about man/files.texi, _not_
lispref/files.texi.
===File ~/man-files-diff====================================
*** files.texi 20 Jan 2004 16:17:38 -0600 1.87
--- files.texi 01 Apr 2004 17:29:17 -0600
***************
*** 855,865 ****
the current buffer. Since reverting a buffer unintentionally could lose
a lot of work, you must confirm this command with @kbd{yes}.
! @code{revert-buffer} keeps point at the same distance (measured in
! characters) from the beginning of the file. If the file was edited only
! slightly, you will be at approximately the same piece of text after
! reverting as before. If you have made drastic changes, the same value of
! point in the old file may address a totally different piece of text.
Reverting marks the buffer as ``not modified'' until another change is
made.
--- 855,864 ----
the current buffer. Since reverting a buffer unintentionally could lose
a lot of work, you must confirm this command with @kbd{yes}.
! @code{revert-buffer} tries to position point in such a way that, if
! the file was edited only slightly, you will be at approximately the
! same piece of text after reverting as before. If you have made drastic
! changes, point may wind up in a totally different piece of text.
Reverting marks the buffer as ``not modified'' until another change is
made.
============================================================
next prev parent reply other threads:[~2004-04-02 0:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-24 15:14 Suggestion for autorevert.el Eric Hanchrow
2004-03-25 4:06 ` Luc Teirlinck
2004-03-25 7:49 ` Richard Stallman
2004-04-01 3:30 ` Luc Teirlinck
2004-04-01 8:00 ` Juanma Barranquero
2004-04-01 17:34 ` Richard Stallman
2004-04-02 4:09 ` Luc Teirlinck
2004-04-02 4:28 ` Luc Teirlinck
2004-04-02 5:02 ` Stefan Monnier
2004-04-02 16:02 ` Luc Teirlinck
2004-04-02 23:46 ` Luc Teirlinck
[not found] ` <87vfktj86f.fsf@offby1.atm01.sea.blarg.net>
2004-04-02 0:11 ` Luc Teirlinck [this message]
2004-04-03 1:30 ` 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=200404020011.i320BJT24024@raven.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
--cc=emacs-devel@gnu.org \
--cc=rms@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).