[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `file-attribute' accessors

From: Lars Magne Ingebrigtsen
Subject: Re: `file-attribute' accessors
Date: Mon, 09 Apr 2012 19:35:49 +0200
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> If this sounds OK, I can add the, erm, 11 trivial accessor functions and
>> adjust the documentation of `file-attributes' in trunk.
> I guess that'd be OK.

While writing the doc string to all the functions, it struck me that it
would be kinda nice if the definition of the function would be something

(defun file-attribute-size (elem)
  (if (stringp file)
      (nth 7 (file-attributes elem))
    (nth 7 elem)))

That is, the functions would accept both a string and a file attribute
list, and do the obvious thing in either case.

What do you think?

(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]