GNU bug report logs - #9171
23.2; revert-buffer ignores revert-without-query

Previous Next

Package: emacs;

Reported by: Steve Throckmorton <arrestee <at> gmail.com>

Date: Mon, 25 Jul 2011 20:05:02 UTC

Severity: minor

Tags: notabug, wontfix

Found in version 23.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 9171 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Steve Throckmorton <arrestee <at> gmail.com>
Cc: 9171 <at> debbugs.gnu.org
Subject: Re: bug#9171: 23.2; revert-buffer ignores revert-without-query
Date: Wed, 13 Feb 2013 04:02:14 -0500
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.




This bug report was last modified 12 years and 95 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.