GNU bug report logs - #13900
24.3.50; tramp mode for for /su: and /sudo: on localhost

Previous Next

Package: emacs;

Reported by: Jason <jason <at> debian.i-did-not-set--mail-host-address--so-tickle-me>

Date: Fri, 8 Mar 2013 01:17:01 UTC

Severity: normal

Tags: notabug

Found in version 24.3.50

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 13900 <at> debbugs.gnu.org
Subject: bug#13900: 24.3.50; tramp mode for for /su: and /sudo: on localhost
Date: Sat, 09 Mar 2013 12:34:15 +0100
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> BTW, could you try and make TAB on such a file name "expand" to
> "/ssh:sudo:..." so as to clarify what's going on?
> IOW, demote the "/<host>:" syntax such that it is expanded to the
> corresponding "/<method>:<host>:" form as early as possible (and as
> visibly as possible)?

`expand-file-name' does it already:

(expand-file-name "/sudo:/home/jason/somefile")
 => "/scp:sudo:/home/jason/somefile"

So maybe we could add `expand-file-name' somewhere in the minibuffer
completion remote file names? Sorry, I'm not so familiar with pcomplete
and friends.

> Also, if <host> is the name of an existing method, the behavior should
> be to treat it as a method name, rather than a host name (i.e. force
> the user to type "/ssh:sudo:" if she wants to connect to the "sudo"
> host).

I thought of this already a while ago. The major problem might be
"ftp". Old ange-ftp users who are not interested in Tramp at all will
kill me, when they are forced to type "/ftp:ftp:".

>         Stefan

Best regards, Michael.




This bug report was last modified 12 years and 123 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.