From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: `file-attribute' accessors Date: Tue, 10 Apr 2012 08:56:40 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334062614 25998 80.91.229.3 (10 Apr 2012 12:56:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Apr 2012 12:56:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 10 14:56:51 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SHact-0000B9-AG for ged-emacs-devel@m.gmane.org; Tue, 10 Apr 2012 14:56:51 +0200 Original-Received: from localhost ([::1]:48716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHacs-0007x6-NU for ged-emacs-devel@m.gmane.org; Tue, 10 Apr 2012 08:56:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHacp-0007ww-GM for emacs-devel@gnu.org; Tue, 10 Apr 2012 08:56:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHack-0007T2-Dv for emacs-devel@gnu.org; Tue, 10 Apr 2012 08:56:47 -0400 Original-Received: from ironport-out.teksavvy.com ([206.248.143.162]:21314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHack-0007SZ-8o for emacs-devel@gnu.org; Tue, 10 Apr 2012 08:56:42 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApUIACxOgk9sr+pC/2dsb2JhbABDuCMDgQyBCIIKAQVWIxALNBIUGA0kiCG2MothhHkEpEWBXYMD X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="173073748" Original-Received: from 108-175-234-66.dsl.teksavvy.com (HELO pastel.home) ([108.175.234.66]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 10 Apr 2012 08:56:40 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 77190589AF; Tue, 10 Apr 2012 08:56:40 -0400 (EDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 10 Apr 2012 04:00:56 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.143.162 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149566 Archived-At: BTW, another approach altogether is to represent file-attributes a bit differently, e.g. as something like ( . ), where (which you could think of as a class if you like OO) describes which fields exist and at which position, so with a few changes to `get' we could use (get (file-attributes ) 'size). Stefan