From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Bolshakov Newsgroups: gmane.emacs.help Subject: longlines and global-auto-revert-mode Date: Tue, 15 Jan 2008 13:01:44 +0300 Message-ID: <478C8488.8040704@bridge-quest.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200391355 12303 80.91.229.12 (15 Jan 2008 10:02:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jan 2008 10:02:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 15 11:02:56 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JEidE-0005nm-HI for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Jan 2008 11:02:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEicq-0000Qe-3f for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Jan 2008 05:02:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JEicS-0000QO-Ec for help-gnu-emacs@gnu.org; Tue, 15 Jan 2008 05:02:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JEicQ-0000Pv-Dp for help-gnu-emacs@gnu.org; Tue, 15 Jan 2008 05:02:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEicQ-0000Pp-7q for help-gnu-emacs@gnu.org; Tue, 15 Jan 2008 05:02:06 -0500 Original-Received: from mail44.opentransfer.com ([76.162.254.44]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JEicP-0006zP-OP for help-gnu-emacs@gnu.org; Tue, 15 Jan 2008 05:02:05 -0500 Original-Received: (qmail 22102 invoked by uid 399); 15 Jan 2008 10:02:02 -0000 Original-Received: from unknown (HELO ?192.168.14.96?) (80.249.179.82) by mail44.opentransfer.com with SMTP; 15 Jan 2008 10:02:02 -0000 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50726 Archived-At: Hi All. My system: WinXP GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE In order to be informed that file has been modified externally, I have added this in my .emacs: (global-auto-revert-mode 1) (defun inform-revert-modified-file (&optional p1 p2) (let ((revert-buffer-function nil)) (revert-buffer p1 p2) (message-box "emacs: modified file automatically reverted: %s" (buffer-file-name)) ) ) (setq revert-buffer-function 'inform-revert-modified-file) It works fine, but if longlines-mode is active, then when file is been modified by external program, I get not only my message, but before it I get question in minibuffer "filename.txt changed on disk; really edit the buffer? (y, n, r or C-h)". Why? I want only my message. How to disable this question? -- With best regards Dmitry Bolshakov