all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bob Proulx <bob@proulx.com>
To: help-gnu-emacs@gnu.org
Subject: "changed on disk" revert-buffer help text?
Date: Sat, 13 Jan 2018 15:17:26 -0700	[thread overview]
Message-ID: <20180113150804506368502@bob.proulx.com> (raw)

Here is a very minor wording issue that makes me question what I think
I know.  Is it a wording problem?  Or is something more deep happening?

I often run into this when editing a file in a git repository and then
doing something with git such as switching branches or something.  In
that case the file is modified outside of emacs and emacs is detecting
and reporting this when I attempt to change the buffer.

The minibuffer correctly tells me of this case:

  myfile changed on disk; really edit the buffer? (y, n, r or C-h)

Then because I want help I C-h to print the associated help:

  You want to modify a buffer whose disk file has changed
  since you last read it in or saved it with this buffer.

  If you say `y' to go ahead and modify this buffer,
  you risk ruining the work of whoever rewrote the file.
  If you say `r' to revert, the contents of the buffer are refreshed
  from the file on disk.
  If you say `n', the change you started to make will be aborted.

  Usually, you should type `n' and then `\[revert-buffer]',
  to get the latest version of the file, then make the change again.

The 'r' command conveniently allows me to revert-buffer, usually what
I want to do, and then modify it.  That's great.

But then that last paragraph says, "Usually, you should type `n' and
then `\[revert-buffer]', to get the latest version of the file, then
make the change again."  Isn't that exactly what the 'r' command does?
Why isn't, "Usually you should type `r' to `\[revert-buffer]' to get
the latest version of the file, then make the change again." the text
there?  Is there some deeper something that is happening with 'r' that
is hinted at there that means we wouldn't want to "usally" use it?

Thanks,
Bob



             reply	other threads:[~2018-01-13 22:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-13 22:17 Bob Proulx [this message]
2018-01-14 11:39 ` "changed on disk" revert-buffer help text? Narendra Joshi
2018-01-14 22:01   ` Bob Proulx

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=20180113150804506368502@bob.proulx.com \
    --to=bob@proulx.com \
    --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.
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.