unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dmitry Bolshakov <dmitry.bolshakov@bridge-quest.com>
To: help-gnu-emacs@gnu.org
Subject: longlines and global-auto-revert-mode
Date: Tue, 15 Jan 2008 13:01:44 +0300	[thread overview]
Message-ID: <478C8488.8040704@bridge-quest.com> (raw)

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

             reply	other threads:[~2008-01-15 10:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-15 10:01 Dmitry Bolshakov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-01-15 17:35 longlines and global-auto-revert-mode martin rudalics
2008-01-16 10:07 ` Dmitry Bolshakov
2008-01-16 10:55   ` martin rudalics
2008-01-16 12:29     ` Dmitry Bolshakov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=478C8488.8040704@bridge-quest.com \
    --to=dmitry.bolshakov@bridge-quest.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).