From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Change Tramp syntax Date: Fri, 10 Mar 2017 11:56:05 -0500 Message-ID: References: <20170309184457.29604.13048@vcs0.savannah.gnu.org> <20170309184458.08C9725FCF@vcs0.savannah.gnu.org> <87k27xfo3q.fsf@detlef> <87efy5fmml.fsf@detlef> <87mvcti5he.fsf_-_@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1489165014 25274 195.159.176.226 (10 Mar 2017 16:56:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Mar 2017 16:56:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 10 17:56:48 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 1cmNqQ-0005qZ-ST for ged-emacs-devel@m.gmane.org; Fri, 10 Mar 2017 17:56:47 +0100 Original-Received: from localhost ([::1]:39894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmNqV-0007ag-Cw for ged-emacs-devel@m.gmane.org; Fri, 10 Mar 2017 11:56:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmNpw-0007aN-SP for emacs-devel@gnu.org; Fri, 10 Mar 2017 11:56:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmNps-0001wj-1h for emacs-devel@gnu.org; Fri, 10 Mar 2017 11:56:16 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:59797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmNpr-0001wA-SR for emacs-devel@gnu.org; Fri, 10 Mar 2017 11:56:11 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id v2AGu50F003967; Fri, 10 Mar 2017 11:56:05 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 0A232600D1; Fri, 10 Mar 2017 11:56:05 -0500 (EST) In-Reply-To: <87mvcti5he.fsf_-_@detlef> (Michael Albinus's message of "Fri, 10 Mar 2017 15:14:21 +0100") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV5969=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5969> : inlines <5737> : streams <1736352> : uri <2390264> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:212892 Archived-At: > Maybe we shall start a poll, in emacs-devel, emacs-help and > tramp-devel. We should not ask what a user prefers (many of them will > prefer not to type a method). They question must be what will be broken > if we stop support for ange-ftp syntax "/host:/path/to/file". Actually, there are several options, for example: 1- Get rid of ange-ftp syntax altogether, like you propose. 2- Keep the syntax, but only when it doesn't collide with the Tramp syntax. I.e. /fencepost:foo will still be allowed, but if you want to access a host named "ssh" you'll need something like /ftp:ssh:foo or /ssh:ssh:foo or /ssh.domain:foo or /user@ssh:foo. I.e. /foo: will only be considered ange-ftp syntax if `foo` is not a method. 3- Like 2 but treat /foo:./bar and /foo:/bar as an ange-ftp syntax even if `foo` is a method. I never use ange-ftp syntax (although I only ever use the `ssh` method), so I could live with 1 (and it sure would simplify the code), but I'm in favor of option 2 because I think it is the simplest option that still preserves the main benefit of the ange-ftp syntax (i.e. the default method). > This would also mean, that we cannot support default methods anymore. A > file name with a default method would look like "/:host:/path/to/file", > which is already the quoted file name syntax. If really needed we could use something like `/-:host:`. Stefan