From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Cc: emacs-devel@gnu.org
Subject: Re: dired uses wrong `ls' switches for Tramp
Date: Wed, 18 Sep 2002 09:49:45 +0200 [thread overview]
Message-ID: <vafd6rbybxi.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: <E17rKfK-0004De-00@fencepost.gnu.org> (Richard Stallman's message of "Tue, 17 Sep 2002 11:53:30 -0400")
Richard Stallman <rms@gnu.org> writes:
> In dired-insert-directory, I see that "--dired" is added to the list
> of switches if the local ls groks that argument.
>
> But the remote ls might not grok it, so I'm looking for a way to
> prevent "--dired" from being added in those cases.
>
> I think it should test file-remote-p, and refrain from using
> --dired for any remote files. This is right because there is never
> any way to tell whether the remote file system supports --dired.
Tramp can just run "ls --dired" and see if ls complains. Using a
similar method, Tramp already finds out a lot of things about the
remote system.
So your suggestion is safe, though it might abstain from "--dired" to
often.
> I can imagine another, more laborious approach: to make Tramp and
> Ange-FTP notice the --dired option and "handle" it. However, they
> ucan't handle it with full correctness; the most they could do is scan
> the output to identify the file names and fake up the --dired output
> to go with them. This would produce results that are no better than
> Dired can get without the --dired option. So this approach would be
> lots of extra work and no real benefit.
Well, what is possible is to remove "--dired" from the list of args
to "ls". This is also tricky, however, as the string should not be
removed from the command "ls -- --dired", for example.
> Would you like to install the call to file-remote-p?
I'll do that.
kai
--
~/.signature is: umop 3p!sdn (Frank Nobis)
next prev parent reply other threads:[~2002-09-18 7:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-16 14:18 dired uses wrong `ls' switches for Tramp Kai Großjohann
2002-09-16 14:31 ` Kai Großjohann
2002-09-17 15:53 ` Richard Stallman
2002-09-18 7:49 ` Kai Großjohann [this message]
2002-09-18 9:16 ` Miles Bader
2002-09-19 15:16 ` Richard Stallman
2002-09-19 17:29 ` Kai Großjohann
2002-09-20 3:44 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vafd6rbybxi.fsf@lucy.cs.uni-dortmund.de \
--to=kai.grossjohann@cs.uni-dortmund.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.