From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Re: Popup when buffer file is changed on disk Date: Sun, 6 Feb 2005 11:41:22 +0100 Message-ID: <000301c50c38$6a152640$0200a8c0@sedrcw11488> References: <200502040036.j140atb03430@raven.dms.auburn.edu> <009d01c50bbb$9aa2fd50$0200a8c0@sedrcw11488> <000c01c50bc5$248dc1e0$6501a8c0@y8h26> <01c50bd6$Blat.v2.4$48866000@zahav.net.il> <001701c50be6$0eb9fa20$0200a8c0@sedrcw11488> <01c50c1c$Blat.v2.4$88670e40@zahav.net.il> <002801c50c2a$cbce93c0$0200a8c0@sedrcw11488> <01c50c31$Blat.v2.4$d9a7a2a0@zahav.net.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1107686935 13633 80.91.229.2 (6 Feb 2005 10:48:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 Feb 2005 10:48:55 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 06 11:48:55 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1CxjyG-00072o-0Q for ged-emacs-devel@m.gmane.org; Sun, 06 Feb 2005 11:48:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cxk7p-0000zp-0Z for ged-emacs-devel@m.gmane.org; Sun, 06 Feb 2005 05:58:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cxk71-0000xd-45 for emacs-devel@gnu.org; Sun, 06 Feb 2005 05:57:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cxk6x-0000w5-TS for emacs-devel@gnu.org; Sun, 06 Feb 2005 05:57:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cxk6x-0000vr-PM for emacs-devel@gnu.org; Sun, 06 Feb 2005 05:57:51 -0500 Original-Received: from [81.228.10.114] (helo=av3-1-sn4.m-sp.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CxjrR-0007Sf-HY; Sun, 06 Feb 2005 05:41:49 -0500 Original-Received: by av3-1-sn4.m-sp.skanova.net (Postfix, from userid 502) id C8CE637E8B; Sun, 6 Feb 2005 11:41:48 +0100 (CET) Original-Received: from smtp2-1-sn4.m-sp.skanova.net (smtp2-1-sn4.m-sp.skanova.net [81.228.10.183]) by av3-1-sn4.m-sp.skanova.net (Postfix) with ESMTP id B852937E7C; Sun, 6 Feb 2005 11:41:48 +0100 (CET) Original-Received: from sedrcw11488 (t1o58p191.telia.com [62.20.164.191]) by smtp2-1-sn4.m-sp.skanova.net (Postfix) with SMTP id C28EF37E44; Sun, 6 Feb 2005 11:41:47 +0100 (CET) Original-To: "Eli Zaretskii" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:32938 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32938 ----- Original Message ----- From: "Eli Zaretskii" > > auto-revert-mode does what it does later, not at the moment Emacs gets > > focus. > > ??? auto-revert-mode periodically checks all buffers that are visiting > a file. The frequency of these checks is determined by the variable > auto-revert-interval, by default every 5 seconds. Hm. Thanks. Looks like I tested too fast. Sorry. > Perhaps you need to set auto-revert-stop-on-user-input to nil and > maybe also play with auto-revert-interval's value, to get almost > instanteneous automatic reverts whenever a file changes. Setting auto-revert-stop-on-user-input to nil does not work for me. Using CVS, any ideas of what could be wrong. > Perhaps a feature can be added to autorevert.el, whereby it checks the > buffers when a focus event arrives. All the rest is already there, I > believe. The timer is surely good, but checking at the focus event is still desireable IMO since it is more instantaneous when switching to Emacs.