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 10:02:20 +0100 Message-ID: <002801c50c2a$cbce93c0$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> 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 1107681381 3805 80.91.229.2 (6 Feb 2005 09:16:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 Feb 2005 09:16:21 +0000 (UTC) Cc: emacs-devel@gnu.org, moheb1333@comcast.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 06 10:16:20 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1CxiWd-0006pA-66 for ged-emacs-devel@m.gmane.org; Sun, 06 Feb 2005 10:16:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CxikU-0002Na-Vc for ged-emacs-devel@m.gmane.org; Sun, 06 Feb 2005 04:30:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CxiiV-0002HQ-Cr for emacs-devel@gnu.org; Sun, 06 Feb 2005 04:28:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CxiiR-0002FM-Nz for emacs-devel@gnu.org; Sun, 06 Feb 2005 04:28:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CxiiR-0001jQ-0P for emacs-devel@gnu.org; Sun, 06 Feb 2005 04:28:27 -0500 Original-Received: from [81.228.10.107] (helo=av9-2-sn4.m-sp.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CxiL6-0006lW-Br; Sun, 06 Feb 2005 04:04:20 -0500 Original-Received: by av9-2-sn4.m-sp.skanova.net (Postfix, from userid 502) id 9EA7E37E6B; Sun, 6 Feb 2005 10:04:19 +0100 (CET) Original-Received: from smtp2-2-sn4.m-sp.skanova.net (smtp2-2-sn4.m-sp.skanova.net [81.228.10.182]) by av9-2-sn4.m-sp.skanova.net (Postfix) with ESMTP id 895C437E67; Sun, 6 Feb 2005 10:04:19 +0100 (CET) Original-Received: from sedrcw11488 (t1o58p191.telia.com [62.20.164.191]) by smtp2-2-sn4.m-sp.skanova.net (Postfix) with SMTP id 647BC37E4F; Sun, 6 Feb 2005 10:04:18 +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:32935 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32935 ----- Original Message ----- From: "Eli Zaretskii" To: "Lennart Borgman" Cc: ; Sent: Sunday, February 06, 2005 8:20 AM Subject: Re: Popup when buffer file is changed on disk > > From: "Lennart Borgman" > > Cc: > > Date: Sun, 6 Feb 2005 01:51:43 +0100 > > > > > Would switching on auto-revert-mode solve your problem here? > > > > I have been missing this feature too. Emacs behaviour is quite confusing if > > you are used to the behavior Moheb mentions. > > > > I do not believe that auto-revert-mode can do what Moheb (and I myself) > > wants. What we want to happen is that Emacs should warn at the moment when > > it gets focus that the file has changed. > > When Emacs warns you that the file was changed, what would you do in > response? I thought that you would revert the buffer, so auto-revert > seemed like a good solution. auto-revert-mode does what it does later, not at the moment Emacs gets focus. I believe that at the moment when Emacs gets focus it should for all files that are visited in buffers and changed outside of Emacs should ask: "File AA.C has changed on disk. Do you want to reload it?" I think a popup should be used for this since it is more visible. Emacs should also keep track of when this question was asked last time (to avoid asking to many times). After this the usual Emacs handling of the situation should persist.