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: Thu, 06 Apr 2017 21:12:45 +0200 Message-ID: <87o9w9xscy.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> <83shmldumk.fsf@gnu.org> <87fuhppgt0.fsf@detlef> <87r318ftlv.fsf@detlef> <87shlo85yd.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1491506012 24634 195.159.176.226 (6 Apr 2017 19:13:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Apr 2017 19:13:32 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 06 21:13:24 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 1cwCqN-0004zA-1U for ged-emacs-devel@m.gmane.org; Thu, 06 Apr 2017 21:13:19 +0200 Original-Received: from localhost ([::1]:47382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwCqS-0005kB-KR for ged-emacs-devel@m.gmane.org; Thu, 06 Apr 2017 15:13:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwCpw-0005hV-RO for emacs-devel@gnu.org; Thu, 06 Apr 2017 15:12:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwCps-0001Wp-Ry for emacs-devel@gnu.org; Thu, 06 Apr 2017 15:12:52 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:61596) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwCps-0001WU-He for emacs-devel@gnu.org; Thu, 06 Apr 2017 15:12:48 -0400 Original-Received: from detlef.gmx.de ([87.146.33.217]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M39zL-1c3y3N1pCR-00szPj for ; Thu, 06 Apr 2017 21:12:46 +0200 In-Reply-To: (John Wiegley's message of "Tue, 04 Apr 2017 12:44:55 -0700") X-Provags-ID: V03:K0:iLtaNbH0JWBLhoskpV2RBT8E/6tuEZuSlw1+5CWENfEhP56bGsa wGEzTwZ8dA+eZhkV4SP/K3QBa42jenBMyKtiRW0482wTsKebHOQP5ysrciTN516ZxZADlRT wgs4exw2cijy9bb9eaA2g6WJpl55e5frVz25p6B3jELS/I5O+0vdRFOTdHGDmmgv3Ex+We2 zhzn4aEXpxephz2FV0ZIQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:l2LuURZG/HM=:thQz3Zt/zcC2/aKp+DhPKR wKWhWjnVzhXejGomjljr+vVQVPnkLf1VkUNQ7KT1tCVqV1gpSQEbtD6hdBQg1k43aFlBbu6oS 4MnKoXwAoxueC8sEPAz/I3V8JLr98FKqg8OlVk7RhVLtZRnum6sy5+aV9dSs/ZcCVsKxUlrhX KHvVcmp020fkCMnWI3iJ+Pb9UmYczCV7LWfn9BDgWmACT/Vm7nAjl48E5fwfhJ4ZkT1Ev4StQ 0go/eXkaDlNc0kqpdtKD9iDxARnoITzkua2g2biMytnaRRZWjkxgdwkNMFyBCjsvSneA48a7X SApRQBg/d+gzH2QScQFyRwEnt8/m3MGUBbJCvgupb6Rh1hUHdZwB7zplgdWDIy7TkYBBBqyiX 3TOEoEIyqc2ZoVJMwFhucQuePlXsRUXFcZn3bIcGaa5H0lsi6uvhSVpLG/AXHvNFvmYjASdOk Gii4N5VlO4kgGtLw8Q8kIBdg2TGJWlowXiRHHe/pHYN7jQV0bnBRbxfxXXsYKwz7HPWt2nZuk vv8KU2T3/kO2MhBo1MISrLM57O5tNjYwTQrPIfyDHWxuVQosiBLo4mXdj3CRm2utYqLebZguk kBI0cD9GURyJbXrzhXKAFHr3B2vyChITIctw7rS10lsxTezbkAG6t0PG+o4ojybKU1MwWRgrp 0jlKpp9LjumTG+44q6x0rsL5q0KVMgbFnm2qlxM+PF/B/weSdaDNMET79XBOHRJO8B7yFSgSH bI5d34c9bwMYiZsVTgQStg8ueFBEmvpBKCAq4OaAY/6QgMil1UyiPZ40ofObD2odS/QvO67Z X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.15 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:213719 Archived-At: John Wiegley writes: Hi John, > MA> "user@" would still be optional. So yes, "/host:" is valid in this special > MA> syntax. > > If that can be the case, all my objections go away. Let me know if I can help > with testing. I've pushed a patch to master which shall allow you to change your Tramp syntax. Put something like this in your .emacs: (tramp-change-syntax 'ftp) That's it, you have ange-ftp syntax "/user@host:/path/to/file". Other possible values are 'def (the default), which changes the syntax to "/method:user@host:/path/to/file"; and 'sep (the XEmacs syntax), which is "/[method/user@host]/path/to/file". In all cases, the "user@" part is optional. You could also call interactively "M-x tramp-change-syntax" at any time. It is autoloaded, no need to load tramp.el before. Note, that this function kills all existing buffers with a remote default-directory, because these buffers cannot be used anymore. Maybe I should give the user a warning in the interactive case. Please give it a testing. I know, at least Drew will test it as well. There's still something to do, documentation, new test cases; but I've pushed the code already in order to get early feedback. Best regards, Michael.