From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: "changed on disk" revert-buffer help text? Date: Sun, 14 Jan 2018 15:01:31 -0700 Message-ID: <20180114145848452619353@bob.proulx.com> References: <20180113150804506368502@bob.proulx.com> <87inc43c17.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1515967218 5597 195.159.176.226 (14 Jan 2018 22:00:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 14 Jan 2018 22:00:18 +0000 (UTC) User-Agent: Mutt/1.9.2 (2017-12-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 14 23:00:14 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eaqK1-0000uI-VO for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Jan 2018 23:00:10 +0100 Original-Received: from localhost ([::1]:40252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaqM1-0004zI-Om for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Jan 2018 17:02:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaqLS-0004z3-7X for help-gnu-emacs@gnu.org; Sun, 14 Jan 2018 17:01:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eaqLO-0001Ut-Cu for help-gnu-emacs@gnu.org; Sun, 14 Jan 2018 17:01:38 -0500 Original-Received: from havoc.proulx.com ([96.88.95.61]:51064) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eaqLO-0001Sk-6c for help-gnu-emacs@gnu.org; Sun, 14 Jan 2018 17:01:34 -0500 Original-Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTP id 57A66106B for ; Sun, 14 Jan 2018 15:01:32 -0700 (MST) Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 1C76D217E4 for ; Sun, 14 Jan 2018 15:01:32 -0700 (MST) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id 084122DC6B; Sun, 14 Jan 2018 15:01:31 -0700 (MST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87inc43c17.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 96.88.95.61 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115720 Archived-At: 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