From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#10085: 24.0.91; completion-pcm--find-all-completions returns wrong remote file names Date: Wed, 27 Apr 2016 15:16:29 -0400 Message-ID: References: <87ty5yu6or.fsf@gmx.de> <8739df3ix4.fsf@gmx.de> <87r50z1gqj.fsf@gmx.de> <87k46qwpl2.fsf@gmx.de> <87k2jiaoe5.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1461784643 30232 80.91.229.3 (27 Apr 2016 19:17:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Apr 2016 19:17:23 +0000 (UTC) Cc: 10085@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 27 21:17:11 2016 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 1avUxS-00061p-71 for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Apr 2016 21:17:10 +0200 Original-Received: from localhost ([::1]:44905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avUxR-0001H8-Ei for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Apr 2016 15:17:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avUxN-0001Ed-Gl for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 15:17:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avUxK-00055C-6B for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 15:17:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avUxK-000558-2X for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 15:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1avUxJ-0007DP-Vo for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 15:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Apr 2016 19:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10085 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10085-submit@debbugs.gnu.org id=B10085.146178459726547 (code B ref 10085); Wed, 27 Apr 2016 19:17:01 +0000 Original-Received: (at 10085) by debbugs.gnu.org; 27 Apr 2016 19:16:37 +0000 Original-Received: from localhost ([127.0.0.1]:50596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avUwv-0006tu-0f for submit@debbugs.gnu.org; Wed, 27 Apr 2016 15:16:37 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:44577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avUws-0006nX-J7 for 10085@debbugs.gnu.org; Wed, 27 Apr 2016 15:16:35 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CfDQA731xV/0uLxEVcgxCEAsYTgk0EAgKBPD0QAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEBAQEBBAEBAQEeizqFBQeELQWLRIRwowuBRSOCO4FZIoJ4AQEB X-IPAS-Result: A0CfDQA731xV/0uLxEVcgxCEAsYTgk0EAgKBPD0QAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEBAQEBBAEBAQEeizqFBQeELQWLRIRwowuBRSOCO4FZIoJ4AQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="218479801" Original-Received: from 69-196-139-75.dsl.teksavvy.com (HELO pastel.home) ([69.196.139.75]) by ironport2-out.teksavvy.com with ESMTP; 27 Apr 2016 15:16:29 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 119E6644CC; Wed, 27 Apr 2016 15:16:29 -0400 (EDT) In-Reply-To: <87k2jiaoe5.fsf@gmx.de> (Michael Albinus's message of "Wed, 27 Apr 2016 20:37:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:116961 Archived-At: > Hmm, "/sudo:" is a valid remote file name. It uses as method the value > of `tramp-default-host', and as host the string between "/" and > ":". That's how it is specified. Where/who specifies it? AFAIK *you* specify it, so you can change it. More specifically, I think it's OK to say: /sudo: is matched as /: /sudo:foo is matched as /:foo /sudo:foo/ is matched as /:foo/ As you know, I'd even be happy to do /sudo:foo/ is matched as /:foo/ and force the user to write /ssh:sudo: or /sudo.domain: when she wants to access a host whose name is the same as an existing method. But IIUC you want to preserve the old /: syntax a bit more closely, so I think /sudo: is matched as /: /sudo:foo is matched as /:foo /sudo:foo/ is matched as /:foo/ might be an acceptable middle ground. > How shall Tramp know from the syntactical point of view, that "sudo" > is meant as method? By fiat ;-) > It cannot, unless somebody tells it to Tramp, for example by > let-binding `non-essential'. IIUC you'd rather skip this part of the discussion, so I won't get into it ;-) > Whatever I'll do, it will go into master. Sounds good to me. Stefan