GNU bug report logs - #22890
25.1.50; Wishlist: There should be file-attribute accessors

Previous Next

Package: emacs;

Reported by: Lars Ingebrigtsen <larsi <at> gnus.org>

Date: Thu, 3 Mar 2016 06:00:02 UTC

Severity: wishlist

Tags: fixed

Found in version 25.1.50

Fixed in version 26.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 22890 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 22890 <at> debbugs.gnu.org
Subject: Re: bug#22890: 25.1.50;
 Wishlist: There should be file-attribute accessors
Date: Fri, 04 Mar 2016 13:39:23 +0000
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> `file-attributes' returns a list of data, and you very often see code
> like
>
> (let ((atts (file-attributes file)))
>   (when (> (elt atts 7) 4000)
>     ...))
>
> and you have no idea what that means.  So I think there should be 12
> attribute accessor functions (well, defsubsts) that people can use
> instead.  The names could be something like `file-attribute-size',
> `file-attribute-access-time', etc.

I've now implemented this on the trunk.

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




This bug report was last modified 8 years and 232 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.