From: Lars Ingebrigtsen <larsi@gnus.org>
To: 22890@debbugs.gnu.org
Subject: bug#22890: 25.1.50; Wishlist: There should be file-attribute accessors
Date: Fri, 04 Mar 2016 13:39:23 +0000 [thread overview]
Message-ID: <87d1ral5v8.fsf@gnus.org> (raw)
In-Reply-To: <87h9goje5d.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 03 Mar 2016 05:58:54 +0000")
Lars Ingebrigtsen <larsi@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
next prev parent reply other threads:[~2016-03-04 13:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-03 5:58 bug#22890: 25.1.50; Wishlist: There should be file-attribute accessors Lars Ingebrigtsen
2016-03-04 13:39 ` Lars Ingebrigtsen [this message]
2016-03-04 16:17 ` Andy Moreton
2016-03-04 19:25 ` Lars Magne Ingebrigtsen
2016-03-04 19:51 ` Drew Adams
2016-03-04 20:00 ` John Wiegley
2016-03-04 20:20 ` Drew Adams
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=87d1ral5v8.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=22890@debbugs.gnu.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).