From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: "Graham Smith" <myotisone@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: UK date format in Dired
Date: Fri, 26 Jan 2007 23:14:31 +0100 [thread overview]
Message-ID: <714145E9-03DB-4CB7-BA5C-ADFA0706937B@Web.DE> (raw)
In-Reply-To: <2c75873c0701261241v2dc01ea1q27c3f661d90bb238@mail.gmail.com>
Am 26.01.2007 um 21:41 schrieb Graham Smith:
> Thanks, be fine and I have added this line to my .emacs , but it
> has made no difference.
>
> Is the "locale" in the code the actual text or am I meant to
> replace with a regional name eg "european"
I remember a time on MS DOS or MS Windows where a shell interpreter
was available, command.com, in its own window (or terminal). Maybe
you have a similiar thing by hand. It should work to invoke 'ls --
help' to see what the ls command understands. The GNU ls command I
use in my Emacsen on Mac OS X tells me (usually in German, because I
have the environment variable LANG set to some German value) that it
accepts:
-a, --all do not ignore entries starting with .
-A, --almost-all do not list implied . and ..
-B, --ignore-backups do not list implied entries ending with ~
-D, --dired generate output designed for Emacs'
dired mode
-h, --human-readable with -l, print sizes in human readable
format
(e.g., 1K 234M 2G)
--si likewise, but use powers of 1000 not 1024
-l use a long listing format
--time-style=STYLE with -l, show times using style STYLE:
full-iso, long-iso, iso, locale, +FORMAT.
FORMAT is interpreted like `date'; if
FORMAT is
FORMAT1<newline>FORMAT2, FORMAT1
applies to
non-recent files and FORMAT2 to recent
files;
if STYLE is prefixed with `posix-', STYLE
takes effect only outside the POSIX locale
And I tried exactly
'(dired-listing-switches "-alD --time-style=locale")
in an UK based environment and it worked. 'ls --version' returns for
me as first line
ls (GNU coreutils) 5.96
If you do not have GNU ls available, then GNU Emacs uses some ls
emulation. This one cannot be switched to display the date in some
'local' format.
I have one (actually two) more thing(s) set:
(setq insert-directory-program "gls" dired-use-ls-dired t)
This tells GNU Emacs to use GNU ls instead of a built-in or system ls
command:
insert-directory-program is a variable defined in `files.el'.
Documentation:
Absolute or relative name of the `ls' program used by `insert-
directory'.
dired-use-ls-dired is a variable defined in `dired.el'.
Documentation:
Non-nil means Dired should use `ls --dired'.
Could be they are accessible via customisation ...
--
Greetings
Pete
Encryption: A powerful algorithmic encoding technique employed in
the creation
of computer manuals.
next prev parent reply other threads:[~2007-01-26 22:14 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3542.1169678575.2155.help-gnu-emacs@gnu.org>
2007-01-24 23:32 ` UK date format in Dired Harald Hanche-Olsen
2007-01-25 6:15 ` Graham Smith
2007-01-26 8:21 ` Eli Zaretskii
2007-01-26 18:55 ` Graham Smith
2007-01-26 20:16 ` Peter Dyballa
2007-01-26 20:41 ` Graham Smith
2007-01-26 22:14 ` Peter Dyballa [this message]
2007-01-26 22:38 ` Graham Smith
2007-01-27 10:36 ` Eli Zaretskii
2007-01-27 10:27 ` Eli Zaretskii
2007-01-27 11:21 ` Peter Dyballa
2007-01-27 11:34 ` Eli Zaretskii
2007-01-27 2:25 ` Tim X
2007-01-27 8:40 ` Graham Smith
2007-01-27 11:22 ` Eli Zaretskii
2007-01-24 22:42 Graham Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=714145E9-03DB-4CB7-BA5C-ADFA0706937B@Web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=myotisone@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.