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: Thu, 03 Mar 2016 05:58:54 +0000 Message-ID: <87h9goje5d.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456984828 30708 80.91.229.3 (3 Mar 2016 06:00:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2016 06:00:28 +0000 (UTC) To: 22890@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 03 07:00:13 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 1abMJ2-0005Rq-Jn for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Mar 2016 07:00:12 +0100 Original-Received: from localhost ([::1]:60783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abMJ1-0004tp-UU for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Mar 2016 01:00:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abMIx-0004qw-MH for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2016 01:00:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abMIt-0000fn-4X for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2016 01:00:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abMIt-0000fc-1v for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2016 01:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1abMIs-0008Uk-QU for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2016 01:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Mar 2016 06:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145698477432584 (code B ref -1); Thu, 03 Mar 2016 06:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Mar 2016 05:59:34 +0000 Original-Received: from localhost ([127.0.0.1]:58434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1abMIP-0008TU-SD for submit@debbugs.gnu.org; Thu, 03 Mar 2016 00:59:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37623) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1abMIO-0008TI-Gp for submit@debbugs.gnu.org; Thu, 03 Mar 2016 00:59:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abMIH-0000bp-Ug for submit@debbugs.gnu.org; Thu, 03 Mar 2016 00:59:27 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abMIH-0000bl-RD for submit@debbugs.gnu.org; Thu, 03 Mar 2016 00:59:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abMIG-0004lQ-BP for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2016 00:59:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abMID-0000aw-1A for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2016 00:59:24 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:43187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abMIC-0000ar-Nd for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2016 00:59:20 -0500 Original-Received: from [31.55.6.3] (helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1abMHn-0003CT-14 for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2016 06:58:55 +0100 X-MailScanner-ID: 1abMHn-0003CT-14 MailScanner-NULL-Check: 1457589535.16447@JJGw0A7Z/OqnNCCXjT+rag X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:114325 Archived-At: `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. In GNU Emacs 25.1.50.65 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.7) of 2016-03-03 built on mouse Repository revision: 0c5c04d58e4efc04905a3f42e984d5f24c554a34 Windowing system distributor 'The X.Org Foundation', version 11.0.11702000 System Description: Ubuntu 15.10 Configured using: 'configure --with-xwidgets --with-x-toolkit=gtk3' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XWIDGETS Important settings: value of $LC_MONETARY: nb_NO.UTF-8 value of $LC_NUMERIC: nb_NO.UTF-8 value of $LC_TIME: nb_NO.UTF-8 value of $LANG: C value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Group Minor modes in effect: diff-auto-refine-mode: t gnus-topic-mode: t gnus-undo-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t Recent messages: Sending via mail... Sending email Sending email done Mark set Saving file /home/larsi/Mail/archive/sent/2016w09... Wrote /home/larsi/Mail/archive/sent/2016w09 Sending...done Making completion list... [2 times] Type C-x 1 to delete the help window, C-M-v to scroll help. Making completion list... Load-path shadows: ~/src/emacs/elpa/packages/debbugs/debbugs-org hides /home/larsi/.emacs.d/elpa/debbugs-0.7/debbugs-org ~/src/emacs/elpa/packages/debbugs/debbugs-browse hides /home/larsi/.emacs.d/elpa/debbugs-0.7/debbugs-browse ~/src/emacs/elpa/packages/debbugs/debbugs-gnu hides /home/larsi/.emacs.d/elpa/debbugs-0.7/debbugs-gnu ~/src/emacs/elpa/packages/debbugs/debbugs hides /home/larsi/.emacs.d/elpa/debbugs-0.7/debbugs Features: (shadow emacsbug eieio-opt speedbar sb-image ezimage dframe find-func timezone eww iso-transl tabify misearch multi-isearch shr-color color mailalias smtpmail sendmail ecomplete log-edit ring pcvs-util vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc-dir ewoc copyright bug-reference whitespace vc vc-dispatcher vc-git map diff-mode gnus-html help-fns qp url-queue url-cache mm-archive sort smiley ansi-color gnus-cite gnus-async gnus-dup gnus-ml gmane spam-gmane dns mm-url disp-table gnus-fun gnus-mdrtn nndraft nnmh utf-7 gnus-topic nnfolder network-stream nsm starttls nnir spam-report spam spam-stat gnus-uu yenc gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message format-spec rfc822 mml mml-sec epa epg mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs mail-utils wid-edit movie mkv shr svg browse-url imdb dom pvr debug debbugs-gnu easy-mmode derived subr-x debbugs soap-client mm-decode mm-bodies mm-encode url-http tls gnutls url-auth mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw puny url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap warnings rng-xsd rng-dt rng-util xsd-regexp xml ido seq flyspell ispell dired dired-loaddefs add-log mail-extr mm-util mail-prsvr jka-compr cl finder-inf info package epg-config url-handlers url-parse auth-source cl-seq eieio byte-opt bytecomp byte-compile cl-extra help-mode easymenu cconv eieio-core cl-macs gv eieio-loaddefs cl-loaddefs pcase cl-lib password-cache url-vars time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 612056 52571) (symbols 48 163800 2) (miscs 40 444 1918) (strings 32 232021 8136) (string-bytes 1 8667448) (vectors 16 40998) (vector-slots 8 1738164 271804) (floats 8 771 2486) (intervals 56 6959 1064) (buffers 976 58) (heap 1024 205225 83336)) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no