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: Re: "changed on disk" revert-buffer help text?
Date: Sun, 14 Jan 2018 15:01:31 -0700	[thread overview]
Message-ID: <20180114145848452619353@bob.proulx.com> (raw)
In-Reply-To: <87inc43c17.fsf@gmail.com>

Narendra Joshi wrote:
> Bob Proulx writes:
> > 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?
> 
> This is what the code does:
>...
> 	      ((eq answer ?r)
> 	       ;; Ask for confirmation if buffer modified
> 	       (revert-buffer nil (not (buffer-modified-p)))
> 	       (signal 'file-supersession
> 		       (list "File reverted" fn)))

Thank you.  That confirms what I was thinking.

> So, nothing happens when we press ?n.

Yes but I was asking about ?r and why that would be different from
pressing 'n' and then M-x revert-buffer.  :-)

Thanks for the research.  I think that last paragraph in the help text
needs to be updated.  I will send in a bug ticket for exactly that as
soon as I get a little bit of free time.

Bob



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

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

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=20180114145848452619353@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.