From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: autorevert.el Date: 22 Mar 2004 11:23:25 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: 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> <8011-Fri19Mar2004164602+0200-eliz@elta.co.il> <200403210326.i2L3QpF29260@raven.dms.auburn.edu> <200403220244.i2M2ikR07506@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1079972758 19091 80.91.224.253 (22 Mar 2004 16:25:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Mar 2004 16:25:58 +0000 (UTC) Cc: eliz@gnu.org, emacs-devel@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Mar 22 17:25:35 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 1B5SF4-00054A-00 for ; Mon, 22 Mar 2004 17:25:34 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B5SF4-0006yl-00 for ; Mon, 22 Mar 2004 17:25:34 +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 1B5SEp-0007R6-1W for emacs-devel@quimby.gnus.org; Mon, 22 Mar 2004 11:25:19 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B5SE9-0007Nw-Nt for emacs-devel@gnu.org; Mon, 22 Mar 2004 11:24:37 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B5SDd-0007ED-9P for emacs-devel@gnu.org; Mon, 22 Mar 2004 11:24:36 -0500 Original-Received: from [206.47.199.141] (helo=simmts12-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B5SD5-00071L-JR; Mon, 22 Mar 2004 11:23:31 -0500 Original-Received: from empanada.local ([67.68.216.177]) by simmts12-srv.bellnexxia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040322162325.SHFM4479.simmts12-srv.bellnexxia.net@empanada.local>; Mon, 22 Mar 2004 11:23:25 -0500 Original-Received: by empanada.local (Postfix, from userid 502) id A726313BF10; Mon, 22 Mar 2004 11:23:25 -0500 (EST) Original-To: Luc Teirlinck In-Reply-To: <200403220244.i2M2ikR07506@raven.dms.auburn.edu> Original-Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:20732 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20732 > How about checking the directory size as well? That could work for MS > filesystems as well, if `stat' does a good job of reporting the > directory size (in the MS-DOS port, it does). > You mean (nth 7 (file-attributes dirname))? (Corresponds to > st_size.) Somehow does not seem to work (on GNU/Linux). It returns > 4096 for all empty to medium size directories. In other words, it is > useless for our purposes. He ment to check it additionally to the mod-time. I.e. if either the mod-time or the size has changed, then the dir has changed. Stefan