unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* TRAMP and ls programme
@ 2009-01-16 14:47 Peter Dyballa
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Dyballa @ 2009-01-16 14:47 UTC (permalink / raw)
  To: Emacs 

Hello!

For dired in GNU Emacs I have:

	(setq insert-directory-program "gls" dired-use-ls-dired t)

for which I can customise:

	 '(dired-listing-switches "-ahlN")

TRAMP 2.1.15-pre uses with the sudo method locally /bin/ls, which  
does not understand -N (although I'm not sure whether it helps to  
make UTF-8 file name appear correctly). Can I convince TRAMP (in GNU  
Emacsen 22.3 and 23.0.60) to use /sw/bin/gls?

--
Greetings

   Pete

It's not the valleys in life I dread so much as the dips.
				– Garfield







^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: TRAMP and ls programme
       [not found] <mailman.5046.1232117291.26697.help-gnu-emacs@gnu.org>
@ 2009-01-16 15:56 ` Michael Albinus
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Albinus @ 2009-01-16 15:56 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: Emacs Help [help-gnu-emacs]

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> Hello!

Hi,

> For dired in GNU Emacs I have:
>
> 	(setq insert-directory-program "gls" dired-use-ls-dired t)
>
> for which I can customise:
>
> 	 '(dired-listing-switches "-ahlN")
>
> TRAMP 2.1.15-pre uses with the sudo method locally /bin/ls, which
> does not understand -N (although I'm not sure whether it helps to
> make UTF-8 file name appear correctly). Can I convince TRAMP (in GNU
> Emacsen 22.3 and 23.0.60) to use /sw/bin/gls?

In `tramp-get-ls-command', Tramp checks for "ls" "gnuls" "gls" (in
this order). If you change the order, and if you add "/sw/bin" to the
remote path, it shall work.

Currently it is hardcoded this way. Maybe one could make it
customizable? If you have a patch for Tramp 2.1, we could try to
add it.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-16 15:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-16 14:47 TRAMP and ls programme Peter Dyballa
     [not found] <mailman.5046.1232117291.26697.help-gnu-emacs@gnu.org>
2009-01-16 15:56 ` Michael Albinus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).