unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: `file-attribute' accessors
Date: Tue, 10 Apr 2012 08:56:40 -0400	[thread overview]
Message-ID: <jwv4nsrg33t.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m3ty0sl50n.fsf@stories.gnus.org> (Lars Magne Ingebrigtsen's message of "Tue, 10 Apr 2012 04:00:56 +0200")

BTW, another approach altogether is to represent file-attributes a bit
differently, e.g. as something like (<type> . <values>), where <type>
(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 <file>) 'size).


        Stefan



      reply	other threads:[~2012-04-10 12:56 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-09 13:56 `file-attribute' accessors Lars Magne Ingebrigtsen
2012-04-09 14:19 ` Thierry Volpiatto
2012-04-09 14:40   ` Lars Magne Ingebrigtsen
2012-04-09 14:53     ` Thierry Volpiatto
2012-04-09 15:46     ` Ted Zlatanov
2012-04-09 16:29       ` Lars Magne Ingebrigtsen
2012-04-09 16:32       ` Stefan Monnier
2012-04-09 16:52         ` Ted Zlatanov
2012-04-10  1:48           ` Stefan Monnier
2012-04-11  1:55           ` Miles Bader
2012-04-09 15:32 ` Leo
2012-04-09 16:31   ` Stefan Monnier
2012-04-09 17:08     ` Drew Adams
2012-04-10  1:47       ` Stefan Monnier
2012-04-10 10:58         ` Thien-Thi Nguyen
2012-04-10 12:52           ` Stefan Monnier
2012-04-09 17:57     ` Leo
2012-04-09 16:33 ` Stefan Monnier
2012-04-09 17:35   ` Lars Magne Ingebrigtsen
2012-04-10  1:50     ` Stefan Monnier
2012-04-10  2:00       ` Lars Magne Ingebrigtsen
2012-04-10 12:56         ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv4nsrg33t.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).