From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: autorevert.el Date: 25 Mar 2004 09:21:55 +0200 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> <200403221939.i2MJd8116508@raven.dms.auburn.edu> <8296-Tue23Mar2004214028+0200-eliz@elta.co.il> <200403240410 Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1080199250 24110 80.91.224.253 (25 Mar 2004 07:20:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Mar 2004 07:20:50 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 25 08:20:45 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 1B6PAT-0006OM-00 for ; Thu, 25 Mar 2004 08:20:45 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B6PAT-0000vP-00 for ; Thu, 25 Mar 2004 08:20:45 +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 1B6PA7-0001Eo-L2 for emacs-devel@quimby.gnus.org; Thu, 25 Mar 2004 02:20:23 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B6P9u-00016F-8h for emacs-devel@gnu.org; Thu, 25 Mar 2004 02:20:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B6P9N-0000hw-No for emacs-devel@gnu.org; Thu, 25 Mar 2004 02:20:08 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.30) id 1B6P9M-0000da-Su; Thu, 25 Mar 2004 02:19:37 -0500 Original-To: Luc Teirlinck In-reply-to: <200403250620.i2P6KKE12816@raven.dms.auburn.edu> (message from Luc Teirlinck on Thu, 25 Mar 2004 00:20:20 -0600 (CST)) 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:20874 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20874 > Date: Thu, 25 Mar 2004 00:20:20 -0600 (CST) > From: Luc Teirlinck > > Note that apparently, stat is only supposed to return a well defined > value for st_size for regular files and for symbolic links, not for > directories. The glibc manual keeps silence about directories, but in fact, at least to the best of my knowledge, st_size does return the size of the directory file on GNU/Linux and other Posix-compliant systems. > You told me it returns a meaningful value on ms-dos. The standard C library used to build Emacs on MS-DOS simply tries to do its best to return some meaningful value for a directory's size. > (In general, I'm opposed to planting into Emacs user-level features > implicit assumptions about Posix-specific behavior, in this case, that > a directory is just another file. Yes, I know: Emacs is being > developed primarily for Posix-compliant platforms, bla, bla...) > > And I'm opposed to planting into Emacs user-level features implicit > assumptions about MS-DOS-port-specific behavior So am I; see my other message in this thread from a few minutes ago. > I don't see how adding a call to file-attributes is a big deal that > needs a call for volunteers, > > It is not. See the patch below. Thank you.