From: Narendra Joshi <narendraj9@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: "changed on disk" revert-buffer help text?
Date: Sun, 14 Jan 2018 17:09:00 +0530 [thread overview]
Message-ID: <87inc43c17.fsf@gmail.com> (raw)
In-Reply-To: <20180113150804506368502@bob.proulx.com> (Bob Proulx's message of "Sat, 13 Jan 2018 15:17:26 -0700")
Bob Proulx <bob@proulx.com> 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:
#+begin_src
(cond ((memq answer '(?? ?\C-h))
(ask-user-about-supersession-help)
(setq answer nil))
((eq answer ?r)
;; Ask for confirmation if buffer modified
(revert-buffer nil (not (buffer-modified-p)))
(signal 'file-supersession
(list "File reverted" fn)))
((eq answer ?n)
(signal 'file-supersession
(list "File changed on disk" fn))))
#+end_src
So, nothing happens when we press ?n.
--
Narendra Joshi
next prev parent reply other threads:[~2018-01-14 11:39 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 [this message]
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=87inc43c17.fsf@gmail.com \
--to=narendraj9@gmail.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.