From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: help-gnu-emacs@gnu.org
Subject: Re: an inconvenient difference in Emacs 22
Date: Sat, 22 Sep 2007 23:56:33 +0300 [thread overview]
Message-ID: <874phmwha6.fsf@kobe.laptop> (raw)
In-Reply-To: mailman.1144.1190427729.18990.help-gnu-emacs@gnu.org
On 21 Sep 2007 22:21:54 -0400, Steve Newcomb <srn@coolheads.com> wrote:
> In the end, an even better approach, at least for our purposes, may be
> global-auto-revert-mode. I am chagrined to discover that this mode
> has been around for a while, and I just didn't know it. Until I read
> your suggestions, I had never understood that, in the jargon of Emacs,
> "revert-buffer", means "update the buffer".
The name was probably chosen because it "reverts any in-memory
modifications the buffer includes, and reloads its contents to what is
stored on disk."
It may seem a bit unintuitive, but now you know it's there and another
cool feature of Emacs can make your every day life easier :-)
> I'm curious about this usage of the word "revert". "Revert" normally
> connotes some sort of retrograde motion. As far as I know, it never
> connotes forward motion at all, much less forward motion undertaken to
> catch up with someone else's forward motion. But, until I'm
> corrected, that's how I'll understand "revert" in the context of
> Emacs.
"revert" is also used in the Source Code Management world. There is at
least one particular use of "revert" which matches precisely the meaning
of "revert" in Emacs lore.
<somewhat-off-topic-but-probably-useful-to-know>
In the Perforce SCM, every file of a local workspace is checked-out as
read-only[1]. Before making local changes, Perforce users are expected
to run "p4 edit filename" or "p4 open filename", to notify the central
repository server that they are going to make changes to the file.
Once a file is "opened", it becomes a part of the active changelist and
it no longer receives updates from the repository, even if another
developer modifies it. It is something like "a local buffer for a
historical copy of the file's contents".
If the developer wants to throw away all local changes, and synchronize
her copy with the latest version of the file in the repository, then the
appropriate incantation is:
p4 revert filename
This does not necessarily "revert" the file contents to the version
which had been historically checked out, but it "reverts the local file
copy to the latest version of the file in the repository".
When a Perforce user runs "p4 revert", the same sort of "forward
movement" you describe with Emacs buffer contents happens if another
developer has checked-in changes in the mean time :-)
Notes
*****
[1] There is an option to check out read-write copies, but it is
generally frowned upon and it makes life somewhat harder down the
road. But that's irrelevant here.
</somewhat-off-topic-but-probably-useful-to-know>
next prev parent reply other threads:[~2007-09-22 20:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-20 15:03 an inconvenient difference in Emacs 22 Steve Newcomb
2007-09-20 23:45 ` Drew Adams
2007-09-21 0:55 ` Denis Bueno
2007-09-21 1:32 ` Eric Hanchrow
[not found] ` <mailman.1087.1190336137.18990.help-gnu-emacs@gnu.org>
2007-09-21 4:01 ` Markus Triska
2007-09-22 2:21 ` Steve Newcomb
2007-09-22 11:34 ` Kevin Rodgers
[not found] ` <mailman.1152.1190461055.18990.help-gnu-emacs@gnu.org>
2007-09-24 20:41 ` Ken Goldman
2007-10-17 22:55 ` David Combs
[not found] ` <mailman.1144.1190427729.18990.help-gnu-emacs@gnu.org>
2007-09-22 20:56 ` Giorgos Keramidas [this message]
2007-09-23 5:42 ` Tim X
[not found] <mailman.1083.1190331955.18990.help-gnu-emacs@gnu.org>
2007-09-21 5:42 ` Harald Hanche-Olsen
2007-09-21 7:38 ` Drew Adams
2007-09-21 8:05 ` Dave Pawson
[not found] <mailman.1080.1190330832.18990.help-gnu-emacs@gnu.org>
2007-09-20 23:36 ` Joost Kremers
2007-09-22 0:08 ` Joe Fineman
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=874phmwha6.fsf@kobe.laptop \
--to=keramida@ceid.upatras.gr \
--cc=help-gnu-emacs@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.
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).