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.