From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: dired uses wrong `ls' switches for Tramp Date: Tue, 17 Sep 2002 11:53:30 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1032278115 22636 127.0.0.1 (17 Sep 2002 15:55:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2002 15:55:15 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17rKgz-0005sy-00 for ; Tue, 17 Sep 2002 17:55:13 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17rLKs-0005gI-00 for ; Tue, 17 Sep 2002 18:36:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17rKhD-0001qi-00; Tue, 17 Sep 2002 11:55:27 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17rKfM-0000jo-00 for emacs-devel@gnu.org; Tue, 17 Sep 2002 11:53:32 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17rKfK-0000iC-00 for emacs-devel@gnu.org; Tue, 17 Sep 2002 11:53:32 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17rKfK-0000i5-00 for emacs-devel@gnu.org; Tue, 17 Sep 2002 11:53:30 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 17rKfK-0004De-00; Tue, 17 Sep 2002 11:53:30 -0400 Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE In-reply-to: (Kai.Grossjohann@CS.Uni-Dortmund.DE) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7970 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7970 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. 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. Would you like to install the call to file-remote-p?