sindikat | 14 Mar 2012 16:15

Tramp-unload-tramp and Ange-ftp

Hello! When i do 'tramp-unload-tramp' and then try to connect to remote
server using 'find-file /root <at> site.com' syntax, i get this lisp error:

(void-function ange-ftp-run-real-handler)

Is that a bug? How can i turn on the tramp again?

Emacs version: 24.0.94.1

I also use ido-mode.
Thorsten | 14 Mar 2012 23:23

Password always twice


Hi List,
is it normal that I always have to give my password twice when using
tramp, and very often, almost for each action?
(I don't do sophisticated stuff, just writing and saving system config
files e.g.)

To me, that makes the usage of tramp rather uncomfortable. 

--

-- 
cheers,
Thorsten
Michael Albinus | 15 Mar 2012 09:33
Picon
Picon
Gravatar

Re: Password always twice

Thorsten <quintfall <at> googlemail.com> writes:

> Hi List,

Hi Thorsten,

> is it normal that I always have to give my password twice when using
> tramp, and very often, almost for each action?

Try (setq password-cache-expiry nil)

Best regards, Michael.
Michael Albinus | 15 Mar 2012 09:36
Picon
Picon
Gravatar

Re: Tramp-unload-tramp and Ange-ftp

sindikat <sindikat <at> riseup.net> writes:

> Hello!

Hi,

> When i do 'tramp-unload-tramp' and then try to connect to remote
> server using 'find-file /root <at> site.com' syntax, i get this lisp error:

Why do you want to unload Tramp? If you want to use ange-ftp with Tramp,
it is sufficient to say

(setq tramp-default-method "ftp")

Best regards, Michael.
Dave Abrahams | 15 Mar 2012 17:07
Picon
Picon
Favicon
Gravatar

tramp (2.2.4-pre); Unknown file I/O primitive: file-subdir-of-p


Enter your bug report in this message, including as much detail
as you possibly can about the problem, what you did to cause it
and what the local and remote machines are.

If you can give a simple set of instructions to make this bug
happen reliably, please include those.  Thank you for helping
kill bugs in Tramp.

Before reproducing the bug, you might apply

  M-x tramp-cleanup-all-connections

This allows to investigate from a clean environment.  Another
useful thing to do is to put

  (setq tramp-verbose 9)

in the ~/.emacs file and to repeat the bug.  Then, include the
contents of the *tramp/foo* buffer and the *debug tramp/foo*
buffer in your bug report.

--bug report follows this line--

I hit `+' in a remote dired buffer and got this

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (error "unknown file I/O primitive: file-subdir-of-p")
  signal(error ("unknown file I/O primitive: file-subdir-of-p"))
  error("unknown file I/O primitive: %s" file-subdir-of-p)
(Continue reading)

Michael Albinus | 15 Mar 2012 22:24
Picon
Picon
Gravatar

Re: tramp (2.2.4-pre); Unknown file I/O primitive: file-subdir-of-p

Dave Abrahams <dave <at> boostpro.com> writes:

Hi Dave,

> I hit `+' in a remote dired buffer and got this
>
> Debugger entered--Lisp error: (error "unknown file I/O primitive: file-subdir-of-p")

`file-subdir-of-p' has been added to Emacs 24 3 weeks ago. If you don't
use the built-in Tramp version, you must upgrade to Tramp 2.2.5-pre.

Best regards, Michael.
Dave Abrahams | 15 Mar 2012 22:38
Picon
Picon
Favicon
Gravatar

Re: tramp (2.2.4-pre); Unknown file I/O primitive: file-subdir-of-p


on Thu Mar 15 2012, Michael Albinus <michael.albinus-AT-gmx.de> wrote:

> Dave Abrahams <dave <at> boostpro.com> writes:
>
> Hi Dave,
>
>> I hit `+' in a remote dired buffer and got this
>>
>> Debugger entered--Lisp error: (error "unknown file I/O primitive: file-subdir-of-p")
>
> `file-subdir-of-p' has been added to Emacs 24 3 weeks ago. If you don't
> use the built-in Tramp version, you must upgrade to Tramp 2.2.5-pre.

Oh, whoops!  I thought I was using the built-in one.  OK, I used el-get
to update... which updates from a CVS server somewhere...

I'll let you know if there are further troubles.

Thanks,

--

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
Dave Abrahams | 15 Mar 2012 23:17
Picon
Picon
Favicon
Gravatar

tramp (2.2.5-pre); tramp-cleanup-all-buffers opens new connections in unmodified buffers


Enter your bug report in this message, including as much detail
as you possibly can about the problem, what you did to cause it
and what the local and remote machines are.

If you can give a simple set of instructions to make this bug
happen reliably, please include those.  Thank you for helping
kill bugs in Tramp.

Before reproducing the bug, you might apply

  M-x tramp-cleanup-all-connections

This allows to investigate from a clean environment.  Another
useful thing to do is to put

  (setq tramp-verbose 9)

in the ~/.emacs file and to repeat the bug.  Then, include the
contents of the *tramp/foo* buffer and the *debug tramp/foo*
buffer in your bug report.

--bug report follows this line--

Sometimes I use `M-x tramp-cleanup-all-buffers' when I want to
disconnect from everything and not incur any more network overhead, but
it just noticed it was opening new connections when I did that.  How do
I disconnect, quick and clean?  Should tramp-cleanup-all-buffers call
tramp-cleanup-all-connections first?

(Continue reading)

Michael Albinus | 17 Mar 2012 15:39
Picon
Picon
Gravatar

Re: tramp (2.2.5-pre); tramp-cleanup-all-buffers opens new connections in unmodified buffers

Dave Abrahams <dave <at> boostpro.com> writes:

Hi Dave,

> Sometimes I use `M-x tramp-cleanup-all-buffers' when I want to
> disconnect from everything and not incur any more network overhead, but
> it just noticed it was opening new connections when I did that.  How do
> I disconnect, quick and clean?  Should tramp-cleanup-all-buffers call
> tramp-cleanup-all-connections first?

tramp-cleanup-all-buffers calls tramp-cleanup-all-connections first. And
the code of both commands is pretty short, I cannot see where's the
problem.

What makes you think there is a new connection? Do you see related
buffers? Are you asked for a password? Something else?

Do you have a scenario for reproduction?

Or could you send the result of "M-x list-buffers", when this happens again?

Best regards, Michael.
Thorsten | 17 Mar 2012 15:46

Re: Password always twice

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

> Thorsten <quintfall <at> googlemail.com> writes:

Hi Michael,

>> is it normal that I always have to give my password twice when using
>> tramp, and very often, almost for each action?
>
> Try (setq password-cache-expiry nil)

I thought I had answered you, but apparently not - therefore thanks for
the tip, makes my life with tramp much more comfortable. 

--

-- 
cheers,
Thorsten

Gmane