aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2007-01-27 13:51:54 +0000
committerEli Zaretskii2007-01-27 13:51:54 +0000
commitde3207757d1fed32c9db707c448675d8a4868ba5 (patch)
tree40d1454c697c41b48a4c777bc640f0b976c1629f
parentea88e7752ecf1222f9950181b8fd7b447b06a243 (diff)
downloademacs-de3207757d1fed32c9db707c448675d8a4868ba5.tar.gz
emacs-de3207757d1fed32c9db707c448675d8a4868ba5.zip
(ls in Lisp): Document ls-lisp-format-time-list and
ls-lisp-use-localized-time-format.
-rw-r--r--man/msdog.texi31
1 files changed, 31 insertions, 0 deletions
diff --git a/man/msdog.texi b/man/msdog.texi
index 47a15cfc019..0ed15229b7c 100644
--- a/man/msdog.texi
+++ b/man/msdog.texi
@@ -280,6 +280,37 @@ restart Emacs, since @file{ls-lisp.el} is preloaded.
280file-name patterns are supported: if it is non-@code{nil} (the 280file-name patterns are supported: if it is non-@code{nil} (the
281default), they are treated as shell-style wildcards; otherwise they 281default), they are treated as shell-style wildcards; otherwise they
282are treated as Emacs regular expressions. 282are treated as Emacs regular expressions.
283
284@vindex ls-lisp-format-time-list
285 The variable @code{ls-lisp-format-time-list} defines how to format
286the date and time of files. @emph{The value of this variable is
287ignored}, unless Emacs cannot determine the current locale. (However,
288if the value of @code{ls-lisp-use-localized-time-format} is
289non-@code{nil}, Emacs obeys @code{ls-lisp-format-time-list} even if
290the current locale is available; see below.)
291
292The value of @code{ls-lisp-format-time-list} is a list of 2 strings.
293The first string is used if the file was modified within the current
294year, while the second string is used for older files. In each of
295these two strings you can use @samp{%}-sequences to substitute parts
296of the time. For example:
297@lisp
298("%b %e %H:%M" "%b %e %Y")
299@end lisp
300
301@noindent
302Note that the strings substituted for these @samp{%}-sequences depend
303on the current locale. @xref{Time Parsing,,, elisp, The Emacs Lisp
304Reference Manual}, for more about format time specs.
305
306@vindex ls-lisp-use-localized-time-format
307 Normally, Emacs formats the file time stamps in either traditional
308or ISO-style time format. However, if the value of the variable
309@code{ls-lisp-use-localized-time-format} is non-@code{nil}, Emacs
310formats file time stamps according to what
311@code{ls-lisp-format-time-list} specifies. The @samp{%}-sequences in
312@code{ls-lisp-format-time-list} produce locale-dependent month and day
313names, which might cause misalignment of columns in Dired display.
283@end ifnottex 314@end ifnottex
284 315
285@node Windows HOME 316@node Windows HOME