[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

longlines and global-auto-revert-mode

From: Dmitry Bolshakov
Subject: longlines and global-auto-revert-mode
Date: Tue, 15 Jan 2008 13:01:44 +0300
User-agent: Thunderbird (Windows/20071031)

Hi All.

My system:
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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]