help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "changed on disk" revert-buffer help text?


From: Bob Proulx
Subject: Re: "changed on disk" revert-buffer help text?
Date: Sun, 14 Jan 2018 15:01:31 -0700
User-agent: Mutt/1.9.2 (2017-12-15)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]