1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-04 11:40:22 +00:00

* eshell/em-ls.el: Display `ls -l' dates in ISO format (Bug#8440).

(eshell-ls-date-format): New defcustom.
(eshell-ls-file): Use it.
This commit is contained in:
Jari Aalto 2011-06-27 17:47:39 -04:00 committed by Chong Yidong
parent e2b551c50e
commit a08cc025e5
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-06-27 Jari Aalto <jari.aalto@cante.net>
* eshell/em-ls.el: Display `ls -l' dates in ISO format (Bug#8440).
(eshell-ls-date-format): New defcustom.
(eshell-ls-file): Use it.
2011-06-27 Stefan Monnier <monnier@iro.umontreal.ca>
* help-fns.el (describe-variable): Fix message for terminal-local vars.

View File

@ -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'.
This is passed to `format-time-string' as a format string.
To display the date using the current locale, use \"%b \%e\"."
: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