[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Change Tramp syntax
From: |
Michael Albinus |
Subject: |
Re: Change Tramp syntax |
Date: |
Thu, 06 Apr 2017 21:12:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
John Wiegley <address@hidden> 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 "/address@hidden:/path/to/file". Other
possible values are 'def (the default), which changes the syntax to
"/method:address@hidden:/path/to/file"; and 'sep (the XEmacs syntax), which
is "/[method/address@hidden/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.
- Re: Change Tramp syntax, John Wiegley, 2017/04/03
- Re: Change Tramp syntax, Michael Albinus, 2017/04/03
- Re: Change Tramp syntax, John Wiegley, 2017/04/03
- RE: Change Tramp syntax, Drew Adams, 2017/04/03
- Re: Change Tramp syntax, Michael Albinus, 2017/04/04
- Re: Change Tramp syntax, John Wiegley, 2017/04/04
- Re: Change Tramp syntax, Michael Albinus, 2017/04/04
- Re: Change Tramp syntax, John Wiegley, 2017/04/04
- Re: Change Tramp syntax,
Michael Albinus <=
- Re: Change Tramp syntax, John Wiegley, 2017/04/07
- Re: Change Tramp syntax, Michael Albinus, 2017/04/08
- Re: Change Tramp syntax, John Wiegley, 2017/04/13
- Re: Change Tramp syntax, Filipp Gunbin, 2017/04/07
- Re: Change Tramp syntax, Michael Albinus, 2017/04/07
- Re: Change Tramp syntax, Michael Albinus, 2017/04/08
- Talking about Lisp symbols, Richard Stallman, 2017/04/09
- Re: Change Tramp syntax, Filipp Gunbin, 2017/04/10
- Re: Change Tramp syntax, Teemu Likonen, 2017/04/10
- Re: Change Tramp syntax, Michael Albinus, 2017/04/10