unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Tramp + ido-mode: error with "/su:"
@ 2008-12-29 19:29 Teemu Likonen
  2008-12-29 20:52 ` Andreas Politz
  2008-12-29 22:01 ` Michael Albinus
  0 siblings, 2 replies; 6+ messages in thread
From: Teemu Likonen @ 2008-12-29 19:29 UTC (permalink / raw)
  To: help-gnu-emacs

I get annoying error when using Tramp and ido-mode together and try to
edit file through /su or /sudo. I do C-x C-f (ido-find-file), type
"/su:" and just after entering the colon a new window named *tramp/scp
su* pops up with the text:

    ssh: Could not resolve hostname su: Name or service not known

    Process *tramp/scp su* exited abnormally with code 255

I can continue typing the path (like /su::/etc/foo) without further
problems and Tramp and Ido completion work nicely. It's the opening of
new window which I'd very much like to get rid of. With Ido mode turned
off there are no errors.

Is it possible to fix this issue somehow?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Tramp + ido-mode: error with "/su:"
  2008-12-29 19:29 Tramp + ido-mode: error with "/su:" Teemu Likonen
@ 2008-12-29 20:52 ` Andreas Politz
  2008-12-29 21:47   ` Teemu Likonen
  2008-12-29 22:01 ` Michael Albinus
  1 sibling, 1 reply; 6+ messages in thread
From: Andreas Politz @ 2008-12-29 20:52 UTC (permalink / raw)
  To: help-gnu-emacs

Teemu Likonen wrote:
> I get annoying error when using Tramp and ido-mode together and try to
> edit file through /su or /sudo. I do C-x C-f (ido-find-file), type
> "/su:" and just after entering the colon a new window named *tramp/scp
> su* pops up with the text:
> 
>     ssh: Could not resolve hostname su: Name or service not known
> 
>     Process *tramp/scp su* exited abnormally with code 255
> 
> I can continue typing the path (like /su::/etc/foo) without further
> problems and Tramp and Ido completion work nicely. It's the opening of
> new window which I'd very much like to get rid of. With Ido mode turned
> off there are no errors.
> 
> Is it possible to fix this issue somehow?


I tried to fix this in ido, but gave up after a while.  Fixing it with

(setq tramp-default-method "sudo")

from tramps side seems to work.

-ap


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Tramp + ido-mode: error with "/su:"
  2008-12-29 20:52 ` Andreas Politz
@ 2008-12-29 21:47   ` Teemu Likonen
  0 siblings, 0 replies; 6+ messages in thread
From: Teemu Likonen @ 2008-12-29 21:47 UTC (permalink / raw)
  To: help-gnu-emacs

Andreas Politz (2008-12-29 21:52 +0100) wrote:

> Teemu Likonen wrote:
>>     ssh: Could not resolve hostname su: Name or service not known
>>
>>     Process *tramp/scp su* exited abnormally with code 255

>> Is it possible to fix this issue somehow?

> I tried to fix this in ido, but gave up after a while.  Fixing it with
>
> (setq tramp-default-method "sudo")
>
> from tramps side seems to work.

Indeed, that works. Thanks.

I checked with Emacs 23 and its tramp does not give that error message
with ido. The whole customization of Emacs 23's tramp is a bit different
from 22's.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Tramp + ido-mode: error with "/su:"
  2008-12-29 19:29 Tramp + ido-mode: error with "/su:" Teemu Likonen
  2008-12-29 20:52 ` Andreas Politz
@ 2008-12-29 22:01 ` Michael Albinus
  2008-12-29 22:23   ` Teemu Likonen
  1 sibling, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2008-12-29 22:01 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: help-gnu-emacs

Teemu Likonen <tlikonen@iki.fi> writes:

> I get annoying error when using Tramp and ido-mode together and try to
> edit file through /su or /sudo. I do C-x C-f (ido-find-file), type

???

I guess you mean M-: (ido-find-file)

> "/su:" and just after entering the colon a new window named *tramp/scp
> su* pops up with the text:
>
>     ssh: Could not resolve hostname su: Name or service not known
>
>     Process *tramp/scp su* exited abnormally with code 255

I couldn't reproduce it with both Emacs 22 and 23, starting "emacs -Q".

It happened only with Emacs 22, when I've typed "/su: <TAB>". But this
is solved already with Emacs 23 (running Tramp 2.1).

Best regards, Michael.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Tramp + ido-mode: error with "/su:"
  2008-12-29 22:01 ` Michael Albinus
@ 2008-12-29 22:23   ` Teemu Likonen
  2008-12-30  5:27     ` Michael Albinus
  0 siblings, 1 reply; 6+ messages in thread
From: Teemu Likonen @ 2008-12-29 22:23 UTC (permalink / raw)
  To: Michael Albinus; +Cc: help-gnu-emacs

Michael Albinus (2008-12-29 23:01 +0100) wrote:

> Teemu Likonen <tlikonen@iki.fi> writes:
>
>> I get annoying error when using Tramp and ido-mode together and try
>> to edit file through /su or /sudo. I do C-x C-f (ido-find-file), type

> I guess you mean M-: (ido-find-file)

When ido-mode is turned on C-x C-f runs command ido-find-file. With
parentheses I just wanted to tell what command exactly is executed when
I type that C-x C-f key sequence. Sorry for the being unclear.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Tramp + ido-mode: error with "/su:"
  2008-12-29 22:23   ` Teemu Likonen
@ 2008-12-30  5:27     ` Michael Albinus
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Albinus @ 2008-12-30  5:27 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: help-gnu-emacs

Teemu Likonen <tlikonen@iki.fi> writes:

> Michael Albinus (2008-12-29 23:01 +0100) wrote:
>
>> Teemu Likonen <tlikonen@iki.fi> writes:
>>
>>> I get annoying error when using Tramp and ido-mode together and try
>>> to edit file through /su or /sudo. I do C-x C-f (ido-find-file), type
>
>> I guess you mean M-: (ido-find-file)
>
> When ido-mode is turned on C-x C-f runs command ido-find-file. With
> parentheses I just wanted to tell what command exactly is executed when
> I type that C-x C-f key sequence. Sorry for the being unclear.

I see. Starting Emacs, and running M-x ido-mode, I could reproduce it as
well.

There is still no problem with Emacs 23 + built-in Tramp 2.1, as you
have confirmed. The combination of Emacs 22 and Tramp 2.0 (built-in) or
Tramp 2.1 gives the error.

I remember a discussion a year ago about a similar problem, see
<http://thread.gmane.org/gmane.emacs.devel/83860>. But I don't know,
whether the published patch works also for Emacs 22. Maybe we let it as
it is (with the given workaround presetting the default method).

Best regards, Michael.




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-12-30  5:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-29 19:29 Tramp + ido-mode: error with "/su:" Teemu Likonen
2008-12-29 20:52 ` Andreas Politz
2008-12-29 21:47   ` Teemu Likonen
2008-12-29 22:01 ` Michael Albinus
2008-12-29 22:23   ` Teemu Likonen
2008-12-30  5:27     ` Michael Albinus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).