From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Change Tramp syntax Date: Sun, 12 Mar 2017 19:43:40 +0100 Message-ID: <87bmt6mj37.fsf@detlef> References: <20170309184457.29604.13048@vcs0.savannah.gnu.org> <20170309184458.08C9725FCF@vcs0.savannah.gnu.org> <87k27xfo3q.fsf@detlef> <87efy5fmml.fsf@detlef> <87mvcti5he.fsf_-_@detlef> <8760jfegz4.fsf@detlef> <874lyyhncr.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1489344277 27228 195.159.176.226 (12 Mar 2017 18:44:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Mar 2017 18:44:37 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 12 19:44:30 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cn8Tj-0005kt-Bc for ged-emacs-devel@m.gmane.org; Sun, 12 Mar 2017 19:44:27 +0100 Original-Received: from localhost ([::1]:48055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cn8Tm-0005vP-72 for ged-emacs-devel@m.gmane.org; Sun, 12 Mar 2017 14:44:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cn8TD-0005vG-Ij for emacs-devel@gnu.org; Sun, 12 Mar 2017 14:43:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cn8T8-0004az-Oi for emacs-devel@gnu.org; Sun, 12 Mar 2017 14:43:55 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:61247) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cn8T8-0004ar-ER for emacs-devel@gnu.org; Sun, 12 Mar 2017 14:43:50 -0400 Original-Received: from detlef.gmx.de ([87.146.62.175]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MAQMg-1cyj3c3YNe-00BdoW; Sun, 12 Mar 2017 19:43:43 +0100 In-Reply-To: (Stefan Monnier's message of "Sun, 12 Mar 2017 13:12:16 -0400") X-Provags-ID: V03:K0:N9ylt4ZJkc9HE8MpXG23PzKH6jdKBc00fVnlRh7PT69kPZIBcpO 6BEW+AsBzT7K230621nJ/zCQojx4z/znvA7RjoQk157ik2jQPBKaZl+xEeziEKFdzW/HkBa 37m/VW9cnnQ4/rCfCg8I6YhDe7zveu/LgFyrKZZdKGacJq36Roa84g4os1ztOWdjwcSie20 nKyuvFgjyoYnxoeJbANSQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:PhfSyKubhWk=:VMicELCHxZ//q2IrfWZXa0 MHLvdLx8HOdEYwqN8Kbt/H999aKMDU66IA3ydGD3vgM+2yleFGhhq7cc9s+/VjSyrnNd65A9F 9LPvU4C7sYQPNKAO7BkrONPWLqvXO+AKzLE5O9lF/qaAUnUXbo10C92KzjJeimCC+vxDn1DMC 1phVIXSZiwDWdcpP+IvOCRDn6WQ9Kb1sBd0TEq14dNgutrCoKZFSvzygKblzldd5x9O9TIxZ5 5ngu4oeJOdMbchtqNIOwViq1S+MgIvpVHnqSVMwckid1xeZJH5hkJaQjtpqapl/36Q4vuFeMn fe666fD9NmpdJZjt1vyDRc+7GApHYXT7mD3683vbZ8XgVw103n3cY6RV0qSxeUkLJ87+2EbwR 1MGbZjIsbrgiv5MxSVB8U23wBq/2/cW1JFeDHTE50EhV33iV0S9cEEzA/ZJpULEV5ECovLCu+ nUrwj+nUZ5KjfPSg+qS/Eyc4bAZYvFciXFQxpecEz7yVsFRo9ERqRaWyxNWVzB04/vCVWzBLV d5Rg6EZveKTCUc+MlzKIyDUaDRGUhF9qz2Gdj1p5lGhKhkgoW75MYLyW8eU6p9rOneCe36BuR dVKCc1qIRfKCDgJPv4M91sAgk3T68EyTdY4cdNyxhksLjGVp/sazbiEIE85XwMVVF9lX6Guut 16LkOIca5C1XmvtQoSzwYgCICpJMnQ9kIhYys5hHYxexmH76AJKLFRMj+V5c5sVTzx/IQzNou fnId1cmCOqolymSjTyyM1RPcQF7LpB2pZyNMU3AH/4IayjSUOmTGW6/Glxdnm6F7t/6V4bmo X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212958 Archived-At: Stefan Monnier writes: Hi Stefan, > Right, so clearly the "is it a method name, or a host name" check is > performed in Elisp code, not in a regexp. So what did you mean by: > > But the check, whether the host name in /ssh:foo collides with > a method, happens too late, because file name handlers are fired by > parsing the file name, and not by additional checks (like a function > call). > > ? When the Tramp file name handler is invoked, it is not clear whether "ssh" is a method or a host name. "foo" could be part of a host name or a local name. >> It would be preferable to extend the second regexp such a way, that >> remote file names like "/ssh:whatever" are not allowed. > > Why? > > Also, I'm still curious about: > What currently breaks if tramp-completion-mode-p always returns nil? Well, I have decided today to solve this for now and ever. I'm changing Tramp that a method name is mandatory. A remote file name is now always /method:user@host: "method" could be "-". The "user@" and "host" parts are optional. Whoever wants to keep ange-ftp style syntax, is obliged to enter the Tramp maintenance team ... > Stefan Best regards, Michael.