diff options
| author | Eli Zaretskii | 2007-01-27 13:51:54 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2007-01-27 13:51:54 +0000 |
| commit | de3207757d1fed32c9db707c448675d8a4868ba5 (patch) | |
| tree | 40d1454c697c41b48a4c777bc640f0b976c1629f | |
| parent | ea88e7752ecf1222f9950181b8fd7b447b06a243 (diff) | |
| download | emacs-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.texi | 31 |
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. | |||
| 280 | file-name patterns are supported: if it is non-@code{nil} (the | 280 | file-name patterns are supported: if it is non-@code{nil} (the |
| 281 | default), they are treated as shell-style wildcards; otherwise they | 281 | default), they are treated as shell-style wildcards; otherwise they |
| 282 | are treated as Emacs regular expressions. | 282 | are 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 | ||
| 286 | the date and time of files. @emph{The value of this variable is | ||
| 287 | ignored}, unless Emacs cannot determine the current locale. (However, | ||
| 288 | if the value of @code{ls-lisp-use-localized-time-format} is | ||
| 289 | non-@code{nil}, Emacs obeys @code{ls-lisp-format-time-list} even if | ||
| 290 | the current locale is available; see below.) | ||
| 291 | |||
| 292 | The value of @code{ls-lisp-format-time-list} is a list of 2 strings. | ||
| 293 | The first string is used if the file was modified within the current | ||
| 294 | year, while the second string is used for older files. In each of | ||
| 295 | these two strings you can use @samp{%}-sequences to substitute parts | ||
| 296 | of the time. For example: | ||
| 297 | @lisp | ||
| 298 | ("%b %e %H:%M" "%b %e %Y") | ||
| 299 | @end lisp | ||
| 300 | |||
| 301 | @noindent | ||
| 302 | Note that the strings substituted for these @samp{%}-sequences depend | ||
| 303 | on the current locale. @xref{Time Parsing,,, elisp, The Emacs Lisp | ||
| 304 | Reference 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 | ||
| 308 | or ISO-style time format. However, if the value of the variable | ||
| 309 | @code{ls-lisp-use-localized-time-format} is non-@code{nil}, Emacs | ||
| 310 | formats 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 | ||
| 313 | names, 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 |