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: autorevert.el Date: Thu, 18 Mar 2004 22:48:59 -0600 (CST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200403190448.i2J4mxQ12087@raven.dms.auburn.edu> References: <200403022319.i22NJbG01259@raven.dms.auburn.edu> <200403040508.i2458W811551@raven.dms.auburn.edu> <200403050400.i2540VQ21715@raven.dms.auburn.edu> <200403130310.i2D3A8w28676@raven.dms.auburn.edu> <200403150008.i2F083x04382@raven.dms.auburn.edu> <200403160456.i2G4uVL14097@raven.dms.auburn.edu> <2427-Tue16Mar2004214034+0200-eliz@elta.co.il> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1079672102 12394 80.91.224.253 (19 Mar 2004 04:55:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Mar 2004 04:55:02 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Mar 19 05:54:52 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B4C20-0000fz-00 for ; Fri, 19 Mar 2004 05:54:52 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B4C20-00036F-00 for ; Fri, 19 Mar 2004 05:54:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B4Bz9-0004zv-85 for emacs-devel@quimby.gnus.org; Thu, 18 Mar 2004 23:51:55 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B4Byl-0004s5-M3 for emacs-devel@gnu.org; Thu, 18 Mar 2004 23:51:31 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B4ByB-0004QP-6P for emacs-devel@gnu.org; Thu, 18 Mar 2004 23:51:27 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B4ByA-0004Pp-TS for emacs-devel@gnu.org; Thu, 18 Mar 2004 23:50:54 -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 i2J4ocKt025441; Thu, 18 Mar 2004 22:50:39 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i2J4mxQ12087; Thu, 18 Mar 2004 22:48:59 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: eliz@elta.co.il In-reply-to: <2427-Tue16Mar2004214034+0200-eliz@elta.co.il> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20593 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20593 Eli Zaretskii wrote: Both of these alternatives sound wrong to me. I think on Windows Emacs should listen to the special message sent by the OS whenever the contents of some directory changes. I believe this is how the Windows Explorer and other programs know when to refresh their views of files in a directory. I do not know anything about non-POSIX operating systems and hence will not be able to do this myself. I also do not have access to computers running these operating systems with CVS Emacs installed, so I could not even check my code, if I were able to write it. To avoid misunderstanding, I am _not_ refusing to do it for ideological reasons, I just am unable to do it. I could make things convenient for anybody wanting to do it, in particular there would be no necessity for that person to know anything about auto-revert.el. I have not yet completely decided on how to do things, but for the moment it seems that there might be a `buffer-stale-function' or such (concrete name still undecided), as Stefan suggested. In that case, one would have the choice between adapting the POSIX function, or giving buffer-stale-function an operating system specific value. Note that I am not creating a portability problem, I am inheriting a portability problem from dired. Any problem that would occur for auto-revert already occurs now in as far as the "Directory has changed on disk; type g to update Dired" messages dired prints are concerned. Any solution to the auto-revert portability problem would also be a solution to that current portability problem. If there is no current portability problem, then there will be no auto-revert portability problem either. (I can not check. In particular, it really would be hard for me to solve a problem without even being able to check whether the problem really occurs.) Sincerely, Luc.