From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#9171: 23.2; revert-buffer ignores revert-without-query Date: Wed, 13 Feb 2013 04:02:14 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1360746157 28376 80.91.229.3 (13 Feb 2013 09:02:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Feb 2013 09:02:37 +0000 (UTC) Cc: 9171@debbugs.gnu.org To: Steve Throckmorton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 13 10:02:57 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U5YEz-0005ZO-73 for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Feb 2013 10:02:57 +0100 Original-Received: from localhost ([::1]:50352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5YEf-0006Ns-R2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Feb 2013 04:02:37 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5YEb-0006NX-EP for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 04:02:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5YEa-0004td-9N for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 04:02:33 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5YEa-0004tX-6m for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 04:02:32 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U5YF4-0000Aa-5r for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 04:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Feb 2013 09:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9171 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9171-submit@debbugs.gnu.org id=B9171.1360746169614 (code B ref 9171); Wed, 13 Feb 2013 09:03:02 +0000 Original-Received: (at 9171) by debbugs.gnu.org; 13 Feb 2013 09:02:49 +0000 Original-Received: from localhost ([127.0.0.1]:53257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5YEp-00009q-TN for submit@debbugs.gnu.org; Wed, 13 Feb 2013 04:02:48 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:37258) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5YEn-00009i-Tk for 9171@debbugs.gnu.org; Wed, 13 Feb 2013 04:02:46 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U5YEI-00041g-Id; Wed, 13 Feb 2013 04:02:14 -0500 X-Spook: Albanian ISEC $400 million in gold bullion Yukon Abu X-Ran: 7D (Steve Throckmorton's message of "Mon, 25 Jul 2011 15:52:58 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71161 Archived-At: Steve Throckmorton wrote: > I set 'revert-without-query' to (".+") so that every file name would > match. However, revert-buffer ignored this and continued to confirm > reversion (unless the buffer had not been modified, as testing later > revealed). Sorry for the long delay. This is the documented behaviour of revert-without-query. If the file name matches one of these regular expressions, then `revert-buffer' reverts the file without querying if the file has changed on disk and you have not edited the buffer. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ You could use M-: (revert-buffer nil t) (or a wrapper for that) if you really don't want to be asked, ever. > I'm not sure why the test for buffer-modified is combined with the > test against revert-without-query. It seems to make it difficult to > get a sensible combination of behaviors.