help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Dired confused by filenames starting with date-like strings


From: Kevin Rodgers
Subject: Re: Dired confused by filenames starting with date-like strings
Date: Thu, 24 Aug 2006 08:27:42 -0600
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)

Peter Dyballa wrote:

Am 24.08.2006 um 00:17 schrieb Miles Bader:

This works correctly on my system, because dired invokes ls with the
"--dired" option (a feature of GNU ls, which causes ls to output extra
information about where the names are located).

The variable `dired-use-ls-dired' controls whether dired does this or
not.

When I do

    (setq dired-use-ls-dired "/sw/bin/gls --dired")

(with or without "/sw/bin/") and then open a directory in dired-mode, my GNU Emacsen 22.0.50 and 23.0.0 tell me:

Debugger entered--Lisp error: (error "Listing directory failed but `access-file' worked")
      signal(error ("Listing directory failed but `access-file' worked"))
      error("Listing directory failed but `access-file' worked")
      insert-directory("/Users/pete/" "--dired -al" nil t)
      dired-insert-directory("/Users/pete/" "-al" nil nil t)
      dired-readin-insert()
      dired-readin()
      dired-internal-noselect("~/" nil)
      dired-noselect("~/" nil)
      dired("~/" nil)
      call-interactively(dired)

and no listing.

There is no reason to set dired-use-ls-dired to anything but t or nil.
In particular, it does not determine which ls program is run.  Try:

(setq insert-directory-program "/sw/bin/ls"
      dired-use-ls-dired t)

--
Kevin





reply via email to

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