From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: flet is obsolete, but... Date: Thu, 11 Oct 2012 10:10:24 +0200 Message-ID: <87391lzaxb.fsf@thinkpad.tsdh.de> References: <804nm2zekk.fsf@somewhere.org> <80lifdsad6.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349943058 13341 80.91.229.3 (11 Oct 2012 08:10:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2012 08:10:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 11 10:11:05 2012 Return-path: Envelope-to: geh-help-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 1TMDrB-0000bt-Dr for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Oct 2012 10:11:01 +0200 Original-Received: from localhost ([::1]:42149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMDr4-0005S6-Ue for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Oct 2012 04:10:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMDqv-0005Rw-4x for help-gnu-emacs@gnu.org; Thu, 11 Oct 2012 04:10:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMDqp-0004Y9-96 for help-gnu-emacs@gnu.org; Thu, 11 Oct 2012 04:10:45 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:38290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMDqp-0004Xx-2f for help-gnu-emacs@gnu.org; Thu, 11 Oct 2012 04:10:39 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TMDqs-0000Rf-Dv for help-gnu-emacs@gnu.org; Thu, 11 Oct 2012 10:10:42 +0200 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Oct 2012 10:10:42 +0200 Original-Received: from tsdh by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Oct 2012 10:10:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) Cancel-Lock: sha1:sVJ6hlj3ZTlzfhX6RLqhav1Humk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87170 Archived-At: "Sebastien Vauban" writes: >> Use the NOCONFIRM argument of revert-buffer. > > I tried another way: What's wrong with NOCONFIRM? > (defun my/revert-buffer () > "Unconditionally revert current buffer." > (interactive) > (let ((revert-without-query t)) > (revert-buffer))) > > but I don't understand why it does not work: > > --8<---------------cut here---------------start------------->8--- > Debugger entered--Lisp error: (wrong-type-argument listp t) > byte-code("\304\211\205\n@\305 \"\203 Because t is not a list. The docs clearly state that `revert-without-query' has to be a list of regular expressions. ,----[ C-h v revert-without-query RET ] | revert-without-query is a variable defined in `files.el'. | Its value is nil | | Documentation: | Specify which files should be reverted without query. | The value is a list of regular expressions. | 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. `---- Bye, Tassilo