[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] UK date format in Dired

From: Graham Smith
Subject: Re: [h-e-w] UK date format in Dired
Date: Sat, 27 Jan 2007 12:04:57 +0000


Thanks for both these last posts on this.

I can see the merits of having the dates align, and while I may come back to this at a later date, I can see from reading your instructions that trying this now, will result in even more questions from me.

All useful learning, but as I said earlier, I am spending time on details that is taking time away from learning emacs. When originally asking the question I had assumed a simple answer.

None the less I will keep these messages for future reference.

Thanks again,


On 27/01/07, Eli Zaretskii <address@hidden> wrote:
> Date: Sat, 27 Jan 2007 13:20:08 +0200
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden
> And since the Windows port of Emacs always sets "LANG" to the current
> Windows language identifier, we end up never using the value of
> ls-lisp-format-time-list, but always use the ISO format instead.
> The comment above says it's a feature: it makes the columns line up,
> which would not be guaranteed if we used the localized format (since
> the length of localized month names could be anything).

One way to work around this would be to install a port of GNU ls, try
it with the --time-style=locale option, and if that produces the
format you want, then disable ls-lisp and use the ported ls as

. Set ls-lisp-use-insert-directory-program to t:

       (setq ls-lisp-use-insert-directory-program t)

. Customize dired-listing-switches to "-al --time-style=locale"
   (Note: no D in the switches, as someone suggested on

       (setq dired-listing-switches "-al --time-style=locale")

I just tried this (with ls.exe from Gnuwin32), and it produces the
directory listing that I'd expect on my locale.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]