From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Narendra Joshi Newsgroups: gmane.emacs.help Subject: Re: "changed on disk" revert-buffer help text? Date: Sun, 14 Jan 2018 17:09:00 +0530 Message-ID: <87inc43c17.fsf@gmail.com> References: <20180113150804506368502@bob.proulx.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515929867 437 195.159.176.226 (14 Jan 2018 11:37:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 14 Jan 2018 11:37:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) 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 12:37:43 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 1eagba-0007t3-0t for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Jan 2018 12:37:38 +0100 Original-Received: from localhost ([::1]:60139 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eagdZ-0001v8-BQ for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Jan 2018 06:39:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eagd4-0001up-LE for help-gnu-emacs@gnu.org; Sun, 14 Jan 2018 06:39:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eagd1-00048M-J4 for help-gnu-emacs@gnu.org; Sun, 14 Jan 2018 06:39:10 -0500 Original-Received: from mail-pl0-x22c.google.com ([2607:f8b0:400e:c01::22c]:46755) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eagd1-00047X-DM for help-gnu-emacs@gnu.org; Sun, 14 Jan 2018 06:39:07 -0500 Original-Received: by mail-pl0-x22c.google.com with SMTP id 66so1809790plc.13 for ; Sun, 14 Jan 2018 03:39:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=wOUcIN1ZFdquUYwaEMVDxgLeWvq++Zdrw+Z4L1wnESE=; b=UO2iBJjwCPJK4ns52RNGoFHOU8uTjBKQE+PUTwcU/wWte5Z/mMMvkkQtPbD3Mu8RAi y7EC8m3wSGgsAXQujjHSUGicAX/rGC75lDq4rXse5H1tzoM5DTxoeAudqhFwO5wDROMi g5HBU7ff5RuBOW7YrzII6K3mdL6i+zfkl+7gGrtncr/LFxenunvqV2UJ7Ao8YCc580/N ythRjr5fS1yN6+58umyec6kf8SInpAkWbr7CVeLJpRRKeNcxfiL+5DNwSoTGBpQmCxig jwq1VXSVxpBx3qmcvttD3mj/VSB6SC9Jc7BnMir/d5VoWc0oywVTdL/XQqRxr9soK2pi W/EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=wOUcIN1ZFdquUYwaEMVDxgLeWvq++Zdrw+Z4L1wnESE=; b=dMtaVFV3cTEskPcpaytQQ3kTlVDLLnxC0+mTV3X3NP6hcTQ59GhviyeuEyVcYCbh/0 9bXy/S9lUgvmfJQTSPunyO2fgUAQGbdEudISKp0XF8sTvlNlhFv/71YKqmGhr7/glf71 17sssxOCiOUTcykRCrKIDApSkFt3EH1v7je3hQS5M12hpWaN8VfpYkXrrjmwH3UHa5VM Ey+OdZKJKlh0ihLGh7xgS/fNTcAqKb0bzIpGY+10/NPhjdzEey3+bJzBSo8by5LffVOm jvhJYHe0G72Hi3rMENDO+dR9cl0i3kxlH/hZQCTrrktK6UbE9Ytpt7iofOYEgL2NvHM3 9Hug== X-Gm-Message-State: AKGB3mL0MAWPp2/TbEcOS/5jmInCXfLFkUJ6Edu5fk9kgmTqkwgQ52CG 0pY1efXow43GK54TFyY2BTY4 X-Google-Smtp-Source: ACJfBou97ZE29tKAPwrNsKt8ne1KToYSl5YQaiYBg5IqcPrXQNLuNefDb4dLjwVGyFGOK2TSPN9RBg== X-Received: by 10.84.210.162 with SMTP id a31mr22327881pli.162.1515929945463; Sun, 14 Jan 2018 03:39:05 -0800 (PST) Original-Received: from vicarie ([1.23.148.155]) by smtp.gmail.com with ESMTPSA id r26sm32637476pfi.140.2018.01.14.03.39.03 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Jan 2018 03:39:04 -0800 (PST) In-Reply-To: <20180113150804506368502@bob.proulx.com> (Bob Proulx's message of "Sat, 13 Jan 2018 15:17:26 -0700") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::22c 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:115718 Archived-At: 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: #+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