From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Popup when buffer file is changed on disk Date: Sun, 6 Feb 2005 22:04:13 -0600 (CST) Message-ID: <200502070404.j1744Dg27601@raven.dms.auburn.edu> 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> <004801c50c76$42764a90$0200a8c0@sedrcw11488> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1107749429 22229 80.91.229.2 (7 Feb 2005 04:10:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Feb 2005 04:10:29 +0000 (UTC) Cc: eliz@gnu.org, moheb1333@comcast.net, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 07 05:10:28 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Cy0E9-00061C-Ov for ged-emacs-devel@m.gmane.org; Mon, 07 Feb 2005 05:10:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cy0SD-0008E2-7F for ged-emacs-devel@m.gmane.org; Sun, 06 Feb 2005 23:24:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cy0Rw-0008Bw-Ub for emacs-devel@gnu.org; Sun, 06 Feb 2005 23:24:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cy0Rr-000895-3X for emacs-devel@gnu.org; Sun, 06 Feb 2005 23:24:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cy0Rq-00088E-F8 for emacs-devel@gnu.org; Sun, 06 Feb 2005 23:24:30 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cy09j-0000gs-JB; Sun, 06 Feb 2005 23:05:47 -0500 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j1745d9N014730; Sun, 6 Feb 2005 22:05:40 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j1744Dg27601; Sun, 6 Feb 2005 22:04:13 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: lennart.borgman.073@student.lu.se In-reply-to: <004801c50c76$42764a90$0200a8c0@sedrcw11488> (lennart.borgman.073@student.lu.se) 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:32980 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32980 If you are going to do this, at least make it an option that is by default off. The rationale behind checking for and warning about files that have changed on disk _after a focus change_ is apparently the assumption that most files change on disk because you edited them with another editor. Many people only use one editor, Emacs. For them that assumption is completely wrong. Files can change on disk for several reasons, including: 1. Because you edited them with another editor. 2. Because some process is writing to them. 3. Because another person is editing them. 4. Because you changed them from within Emacs in some way that bypassed the buffer. (To be avoided, but can inadvertently happen.) (2), (3) and (4) are unrelated to focus changes. They can happen any time. For people that only edit files using Emacs, (1) never happens. If processes are writing to files visited in buffers, files are going to change on disk all the time. I would be reminded about that on just about every focus change, even though I know that autorevert is going to revert them within 5 seconds or less. This is senseless. Clearly, the best way to deal with all ways that a file can change on disk is a combination of mode line and Buffer Menu. (And still this would only be needed if for some reason you do not want to use autorevert or if you are editing files that could change on disk.) The mode line and Buffer Menu features would not be very difficult to implement. But we are in a feature freeze, so I believe it can wait till Emacs 22. Sincerely, Luc.