From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Graham Smith" Newsgroups: gmane.emacs.help Subject: Re: UK date format in Dired Date: Fri, 26 Jan 2007 22:38:30 +0000 Message-ID: <2c75873c0701261438l5e222fa9n33cc02fc781d579d@mail.gmail.com> References: <2c75873c0701242215q2b07ab52u2dc74f10946c58f9@mail.gmail.com> <2c75873c0701261055q49f763dfh474d002c566de36b@mail.gmail.com> <2c75873c0701261241v2dc01ea1q27c3f661d90bb238@mail.gmail.com> <714145E9-03DB-4CB7-BA5C-ADFA0706937B@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0676182496==" X-Trace: sea.gmane.org 1169851136 8801 80.91.229.12 (26 Jan 2007 22:38:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 26 Jan 2007 22:38:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 26 23:38:50 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 1HAZic-0002DJ-7Q for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jan 2007 23:38:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAZib-0006j6-Pm for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jan 2007 17:38:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HAZiM-0006h1-QQ for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 17:38:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HAZiK-0006fy-Br for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 17:38:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAZiK-0006fv-6U for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 17:38:32 -0500 Original-Received: from nf-out-0910.google.com ([64.233.182.186]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAZiJ-0004II-Je for help-gnu-emacs@gnu.org; Fri, 26 Jan 2007 17:38:32 -0500 Original-Received: by nf-out-0910.google.com with SMTP id h2so1281872nfe for ; Fri, 26 Jan 2007 14:38:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=LNjQWmYK6b+peSog76SRWicW9P/EMyUG4e0cEak7Lpa85smWKm3D/q4oz3v28thcVn0fRLKHpEPYb7l9gj870j7LB9eOC4g7hq51DaJTNsG6byIUafDfR3JLbyHv0X/7EvFtyPYBPnUo0DDC94J0H4GesMARPtKc1rwbgtO3V5Q= Original-Received: by 10.49.65.15 with SMTP id s15mr6178943nfk.1169851110541; Fri, 26 Jan 2007 14:38:30 -0800 (PST) Original-Received: by 10.49.20.19 with HTTP; Fri, 26 Jan 2007 14:38:30 -0800 (PST) In-Reply-To: <714145E9-03DB-4CB7-BA5C-ADFA0706937B@Web.DE> X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) 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:40694 Archived-At: --===============0676182496== Content-Type: multipart/alternative; boundary="----=_Part_36930_25038938.1169851110497" ------=_Part_36930_25038938.1169851110497 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Pete, I can't say I follow all of this, but I don't think I have GNU installed and as I understand it, I need this for this line of code to work. Thanks for your help, maybe I will just live with it. Graham On 26/01/07, Peter Dyballa wrote: > > > 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. > > > ------=_Part_36930_25038938.1169851110497 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Pete,

I can't say I follow all of this, but I don't think I have GNU installed and as I understand it, I need this for this line of code to work.

Thanks for your help, maybe I will just live with it.

Graham

On 26/01/07, Peter Dyballa <Peter_Dyballa@web.de> wrote:

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.



------=_Part_36930_25038938.1169851110497-- --===============0676182496== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0676182496==--