From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.bugs Subject: bug#19192: 25.0.50; TRAMP uses `dired-listing-switches' for ftp-connection Date: Sat, 29 Nov 2014 12:16:43 +0100 Message-ID: <87mw7afe90.fsf@gmx.us> References: <87tx1mrwwq.fsf@gmx.us> <87zjbe9j9c.fsf@gmx.de> <87h9xlil0f.fsf@gmx.us> <877fye2spw.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417259845 30065 80.91.229.3 (29 Nov 2014 11:17:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2014 11:17:25 +0000 (UTC) Cc: 19192@debbugs.gnu.org To: michael.albinus@gmx.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 29 12:17:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xug1d-0002Kl-Ka for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Nov 2014 12:17:17 +0100 Original-Received: from localhost ([::1]:47272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xug1d-0002x7-6W for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Nov 2014 06:17:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xug1U-0002wz-AJ for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2014 06:17:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xug1O-0005kS-Vg for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2014 06:17:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xug1O-0005kM-S2 for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2014 06:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xug1O-0005Qe-Gc for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2014 06:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Rasmus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Nov 2014 11:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19192 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19192-submit@debbugs.gnu.org id=B19192.141725981520850 (code B ref 19192); Sat, 29 Nov 2014 11:17:02 +0000 Original-Received: (at 19192) by debbugs.gnu.org; 29 Nov 2014 11:16:55 +0000 Original-Received: from localhost ([127.0.0.1]:48877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xug1G-0005QD-Ma for submit@debbugs.gnu.org; Sat, 29 Nov 2014 06:16:54 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:51850) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xug1D-0005Q4-D3 for 19192@debbugs.gnu.org; Sat, 29 Nov 2014 06:16:52 -0500 Original-Received: from W530 ([37.135.96.168]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MUZKF-1XUaKK43pT-00RJPy; Sat, 29 Nov 2014 12:16:49 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUvLy91dXVUVFSRkZGs rKzQ0NCgYj8zAAACUUlEQVQ4y2XTXZKbMAwAYONeAEn03RJ7gAiZ9ya235sG3/8qFbBkd1oNM5nx F/1YDOEdUUDC/xHBlNTpH4ymYOACsMX0DchAgcDI2uPx7XzYz00NaessGObxKmRGpkWxtQfjOJer kAI1bQvCdvdOAsu7EE39Y4uaoLUXAbwTtKzPducUIgGDJoZxTyBbresLJTAmAQA2DR5s9PrZOfe+ Fe/mD5+1QFddnx99AzOVPVjTsQxYoY+Mnqvc+mYo8ZgJ9MmKAmbL3D2qzntC+gHTAsF7kg59j4JH BxkIOEURQPzZe+v9BemYaVBEAD+n2+qD+YMHDIKSOLCQ/drB8obHCiOyAQZhstvUu6UIJwzC++TM cMB9nyccECUFBgQqt9o7Sojp7DFIFAYgssVb8J/A59IjSHIgpbzDimH+84YkDlYfza99j9MznHGA qeX9HkV5fX0Bk4HV24ePe4f6BYGpgOXxR+8ZJG/neXQAulPN4+yvCjn376C5rH7BWpLUnk6IDqbF m081q0DMnyBfYAUHQvnsfUKu+UZkKIDXUFEOKHkk0iQSLhAH1bU2gQlE+Hm18JpkVLctggFKkfAF s1ltfyIZyLxckE7o/RbYkCco10JGDNFy75wiKVh7nT1Y0Oebc3+Keor/436CCLK/x/YShsUl3/EC 8Z0MJkILLUHAp79gGMOsDoakIfr51WMeYzaUbAr0O15frESkNGfVyZeigNHeACC5bVZrMc+Jt/AG +ah1K1RrLgV4/ASMMNRWt1qglloVbm/AyY+9jlL2H3yc1/gLV++FkXU0IfkAAAAASUVORK5CYII= In-Reply-To: <877fye2spw.fsf@gmx.de> (Michael Albinus's message of "Sat, 29 Nov 2014 11:42:35 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:XMESG9V9RVwdy6i6jUrcFRBeVaa/pf4BmujSCoCZOFAa51Fkb5K S9GHLTrh8Xim5m69e83bhtorQ/fsItJ4cQRQem/PlqI3uOYMylzmzGmWquN0pYeuLJj+9Qw ov406jblJSedtle57it9yB6GIDAd/kQ7BhKHuMYQ7u0KxraBNlAo2al7RxqdfcDpsYoJvm6 u+1cio0ys4z93kAnWEbxA== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96725 Archived-At: Hi, Sorry for asking so many questions. Michael Albinus writes: > Rasmus writes: >>> A possible fix might be to give a user an option, whether global >>> dired-listing-switches shall be used everywhere, or whether there shall >>> be special settings connection-oriented. >> >> So it turns out that arguments are tested via `ange-ftp-switches-ok'. >> So the easiest fix would probably be to extend this function to do a >> better job of checking. Unfortunately, I don't know if one can easily >> predict which ls commands will be understood and which not? E.g. does >> ftp ls depend on the host systems version of ls? > > I don't know exactly. But I guess the most stable patch would be to not > expect too much from ftp's ls. So according to the note in `ange-ftp-get-files' there's the following node on using dired-actual-switches or dired-listing-switches ;; This is an efficiency hack. We try to ;; anticipate what sort of listing dired ;; might want, and cache just such a listing. Switches are checked with `ange-ftp-switches-ok'. (man "sftp") has a nice list of switches supported. Unfortunately, I don't really find anything on supported ls in the manpage of ftp or the info manual... Option I: I can limit accepted ls flags by ange-ftp to the subset supported by sftp. Option I+: I could add a defcustom to allow the current more liberal behavior akin to ange-ftp-passive-host-alist and ange-ftp-try-passive-mode. Option II would be to add build-in support for something like the --group-directories-first in dired, since now, if scrub off --group-directories-first, a dired-ftp buffer will look different from a local dired buffer... For now I will go with Option I. Thanks, Rasmus -- The Kids call him Billy the Saint