From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#22890: 25.1.50; Wishlist: There should be file-attribute accessors Date: Fri, 04 Mar 2016 13:39:23 +0000 Message-ID: <87d1ral5v8.fsf@gnus.org> References: <87h9goje5d.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1457105751 13075 80.91.229.3 (4 Mar 2016 15:35:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Mar 2016 15:35:51 +0000 (UTC) To: 22890@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 04 16:35:39 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1abrlR-0006ss-Aq for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Mar 2016 16:35:37 +0100 Original-Received: from localhost ([::1]:41769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abrlQ-0006yM-NZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Mar 2016 10:35:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abrkx-000678-Vd for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2016 10:35:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abrku-0002NG-5F for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2016 10:35:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abrku-0002N5-1z for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2016 10:35:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1abrkt-0000Ir-TF for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2016 10:35:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Mar 2016 15:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22890-submit@debbugs.gnu.org id=B22890.1457105665714 (code B ref 22890); Fri, 04 Mar 2016 15:35:03 +0000 Original-Received: (at 22890) by debbugs.gnu.org; 4 Mar 2016 15:34:25 +0000 Original-Received: from localhost ([127.0.0.1]:33671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1abrkG-0000BS-UW for submit@debbugs.gnu.org; Fri, 04 Mar 2016 10:34:25 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:47267) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1abrkE-0000BC-IJ for 22890@debbugs.gnu.org; Fri, 04 Mar 2016 10:34:23 -0500 Original-Received: from 2.150.35.31.tmi.telenormobil.no ([2.150.35.31] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1abrjK-0004Pj-7K for 22890@debbugs.gnu.org; Fri, 04 Mar 2016 16:33:26 +0100 In-Reply-To: <87h9goje5d.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 03 Mar 2016 05:58:54 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1abrjK-0004Pj-7K MailScanner-NULL-Check: 1457710406.58247@AkD8haxm/JGkp4tsoIDsEA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114400 Archived-At: Lars Ingebrigtsen 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