From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: UK date format in Dired Date: Fri, 26 Jan 2007 23:14:31 +0100 Message-ID: <714145E9-03DB-4CB7-BA5C-ADFA0706937B@Web.DE> References: <2c75873c0701242215q2b07ab52u2dc74f10946c58f9@mail.gmail.com> <2c75873c0701261055q49f763dfh474d002c566de36b@mail.gmail.com> <2c75873c0701261241v2dc01ea1q27c3f661d90bb238@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1169849693 4187 80.91.229.12 (26 Jan 2007 22:14:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 26 Jan 2007 22:14:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Graham Smith" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 26 23:14:51 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HAZLP-0007Wh-1g for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jan 2007 23:14:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAZLO-0008Ao-9e for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jan 2007 17:14:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HAZLC-0008Aj-EW for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 17:14:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HAZLA-00088p-12 for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 17:14:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAZL9-00088S-Pr for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 17:14:35 -0500 Original-Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAZL9-0008Jq-C5 for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 17:14:35 -0500 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate01.web.de (Postfix) with ESMTP id 6045C5745B6F; Fri, 26 Jan 2007 23:14:34 +0100 (CET) Original-Received: from [84.245.186.67] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.107 #114) id 1HAZL8-0007lY-00; Fri, 26 Jan 2007 23:14:34 +0100 In-Reply-To: <2c75873c0701261241v2dc01ea1q27c3f661d90bb238@mail.gmail.com> X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40692 Archived-At: 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 FORMAT1FORMAT2, 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.