From unknown Wed Jun 25 00:23:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8440 <8440@debbugs.gnu.org> To: bug#8440 <8440@debbugs.gnu.org> Subject: Status: [PATCH] eshell - Display ls -l dates in ISO 8601 format Reply-To: bug#8440 <8440@debbugs.gnu.org> Date: Wed, 25 Jun 2025 07:23:55 +0000 retitle 8440 [PATCH] eshell - Display ls -l dates in ISO 8601 format reassign 8440 emacs submitter 8440 Jari Aalto severity 8440 wishlist tag 8440 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 07 12:11:46 2011 Received: (at submit) by debbugs.gnu.org; 7 Apr 2011 16:11:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q7ro9-0002yW-HL for submit@debbugs.gnu.org; Thu, 07 Apr 2011 12:11:45 -0400 Received: from emh04.mail.saunalahti.fi ([62.142.5.110]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q7ro7-0002yH-3Y for submit@debbugs.gnu.org; Thu, 07 Apr 2011 12:11:44 -0400 Received: from saunalahti-vams (vs3-10.mail.saunalahti.fi [62.142.5.94]) by emh04-2.mail.saunalahti.fi (Postfix) with SMTP id 2B52413B780 for ; Thu, 7 Apr 2011 19:11:35 +0300 (EEST) Received: from emh06.mail.saunalahti.fi ([62.142.5.116]) by vs3-10.mail.saunalahti.fi ([62.142.5.94]) with SMTP (gateway) id A014C920E66; Thu, 07 Apr 2011 19:11:35 +0300 Received: from cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh06.mail.saunalahti.fi (Postfix) with ESMTP id F1D0CE51A5 for ; Thu, 7 Apr 2011 19:11:31 +0300 (EEST) From: Jari Aalto To: submit@debbugs.gnu.org Subject: [PATCH] eshell - Display ls -l dates in ISO 8601 format Mail-Copies-To: poster Date: Thu, 07 Apr 2011 19:11:31 +0300 Message-ID: <87mxk2avnw.fsf@blue.sea.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Antivirus: VAMS X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain Package: emacs Version: 23.2+1-7 Severity: wishlist The use of locale for displaying dates is problematic outside of English; An example using FI locale: eshell$ ls -l -rw-rw-rw- 1 user users 39269 maalis 7 18:29 align.elc -rw-rw-rw- 1 user users 297856 helmi 23 11:11 allout.el -rw-rw-rw- 1 user users 213672 maalis 7 18:29 allout.elc -rw-rw-rw- 1 user users 25176 tammi 8 11:45 ansi-color.el The output appears rugged and is hard to read. The following patch make "ls -l" use international ISO 8601 date format: -rw-rw-rw- 1 user users 39269 2011-03-07 18:29 align.elc -rw-rw-rw- 1 user users 297856 2011-02-23 11:11 allout.el -rw-rw-rw- 1 user users 213672 2011-03-07 18:29 allout.elc -rw-rw-rw- 1 user users 25176 2011-01-08 11:45 ansi-color.el 2011-04-07 Jari Aalto * eshell/em-ls.el (eshell-ls-date-format): New variable. Show dates in ISO 8601 format by default. (eshell-ls-file): Use `eshell-ls-date-format'. -- System Information Debian Release: wheezy/sid APT Prefers testing APT policy: (990, testing) (500, unstable) (1, experimental) Architecture: amd64 Kernel: Linux picasso 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64 GNU/Linux Locale: LANG=en_US.UTF-8, LC_ALL= -- Versions of packages `emacs depends on'. Depends: emacs23 23.2+1-7 GNU Emacs is the extensible self-documenting emacs23-lucid 23.2+1-7 GNU Emacs is the extensible self-documenting emacs23-nox 23.2+1-7 GNU Emacs is the extensible self-documenting --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-lisp-eshell-em-ls.el-use-ISO-8601-in-ls-l-output.patch >From 16f782c350b0e97cdf4b58e23797cd0607c82d5b Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Thu, 7 Apr 2011 19:00:46 +0300 Subject: [PATCH] lisp/eshell/em-ls.el: use ISO 8601 in ls -l output Organization: Private Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Jari Aalto --- lisp/eshell/em-ls.el | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/lisp/eshell/em-ls.el b/lisp/eshell/em-ls.el index 4ef259d..c7da459 100644 --- a/lisp/eshell/em-ls.el +++ b/lisp/eshell/em-ls.el @@ -57,6 +57,13 @@ properties to colorize its output based on the setting of :type 'hook :group 'eshell-ls) +(defcustom eshell-ls-date-format "%Y-%m-%d " + "*How to display time information in `eshell-ls-file'. +For current locale, use \"%b \%e". +See `format-time-string'." + :type 'string) + :group 'eshell-ls) + (defcustom eshell-ls-initial-args nil "If non-nil, this list of args is included before any call to `ls'. This is useful for enabling human-readable format (-h), for example." @@ -508,7 +515,7 @@ whose cdr is the list of file attributes." str)) " " (format-time-string (concat - "%b %e " + eshell-ls-date-format (if (= (nth 5 (decode-time (current-time))) (nth 5 (decode-time (nth (cond -- 1.7.4.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 27 17:48:38 2011 Received: (at 8440) by debbugs.gnu.org; 27 Jun 2011 21:48:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QbJfa-0005dY-LV for submit@debbugs.gnu.org; Mon, 27 Jun 2011 17:48:38 -0400 Received: from vm-emlprdomr-03.its.yale.edu ([130.132.50.144]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QbJfX-0005dL-Bq for 8440@debbugs.gnu.org; Mon, 27 Jun 2011 17:48:36 -0400 Received: from furball (dhcp128036014060.central.yale.edu [128.36.14.60]) (authenticated bits=0) by vm-emlprdomr-03.its.yale.edu (8.14.4/8.14.4) with ESMTP id p5RLmT4Z014384 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 27 Jun 2011 17:48:29 -0400 From: Chong Yidong To: Jari Aalto Subject: Re: bug#8440: [PATCH] eshell - Display ls -l dates in ISO 8601 format References: <87mxk2avnw.fsf@blue.sea.net> Date: Mon, 27 Jun 2011 17:48:28 -0400 In-Reply-To: <87mxk2avnw.fsf@blue.sea.net> (Jari Aalto's message of "Thu, 07 Apr 2011 19:11:31 +0300") Message-ID: <8762nr2bf7.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.144 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 8440 Cc: 8440@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Jari Aalto writes: > The following patch make "ls -l" use international ISO 8601 date > format: Thanks. Committed to trunk. BTW, it's no longer necessary nor desireable to start option docstrings with *. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 27 17:48:47 2011 Received: (at control) by debbugs.gnu.org; 27 Jun 2011 21:48:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QbJfi-0005ds-Td for submit@debbugs.gnu.org; Mon, 27 Jun 2011 17:48:47 -0400 Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QbJfh-0005dg-Re for control@debbugs.gnu.org; Mon, 27 Jun 2011 17:48:46 -0400 Received: from furball (dhcp128036014060.central.yale.edu [128.36.14.60]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id p5RLmeYO022598 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Mon, 27 Jun 2011 17:48:40 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 8440 Date: Mon, 27 Jun 2011 17:48:39 -0400 Message-ID: <87liwnc5e0.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) close 8440 thanks From unknown Wed Jun 25 00:23:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 26 Jul 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator