unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* tramp
  2002-09-24  8:59 How to make emacs auto-recognize utf-8 encoded files upon visiting Charles Muller
@ 2002-09-24 19:05 ` Roger Mason
  0 siblings, 0 replies; 13+ messages in thread
From: Roger Mason @ 2002-09-24 19:05 UTC (permalink / raw)


Hi,

I downloaded tramp-2.0.22 and installed it.  I am trying to get it
configured. For now I have to use telnet as the default connection method,
so I executed

(setq tramp-default-method "tm") in the scratch buffer and it returned

"tm"

When I try to get a file from a my home dir on a remote machine:

/fred.here.there.everywhere:~/.emacs

I get 

Method 'tm' didn't specify a connection function in the mini-buffer.

Obviously I missed something in the configuration.  Can anyone help?

Thanks,

Roger Mason
emacs 21.1

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

* Re: tramp
       [not found] <mailman.1032894380.6606.help-gnu-emacs@gnu.org>
@ 2002-09-24 20:11 ` Kai Großjohann
  2002-09-26 17:38 ` tramp Michael P. Soulier
  1 sibling, 0 replies; 13+ messages in thread
From: Kai Großjohann @ 2002-09-24 20:11 UTC (permalink / raw)


Roger Mason <rmason@sparky2.esd.mun.ca> writes:

> I downloaded tramp-2.0.22 and installed it.  I am trying to get it
> configured. For now I have to use telnet as the default connection method,
> so I executed
>
> (setq tramp-default-method "tm") in the scratch buffer and it returned

The new Tramp has different methods.  It auto-detects whether to use
base64 or uuencode encodings.  The method is now called "telnet".

kai
-- 
~/.signature is: umop 3p!sdn    (Frank Nobis)

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

* Tramp
@ 2002-09-25 12:34 Roger Mason
  0 siblings, 0 replies; 13+ messages in thread
From: Roger Mason @ 2002-09-25 12:34 UTC (permalink / raw)


Hello,

I put (setq tramp-default-method "telnet") in my .emacs file.  Now, when I
try to contact a remote machine this error is returned:

 "Args out of range: 0,0".

If I try again, I get
 
"File not found and directory write-protected"

I assume something is still not configured correctly.
   
Thanks for any help.
 
Roger Mason

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

* Re: Tramp
       [not found] ` <nqfzvyjji1.fsf@alcatel.de>
@ 2002-09-25 14:03   ` Kai Großjohann
  2002-09-25 15:25     ` Tramp Roger Mason
  0 siblings, 1 reply; 13+ messages in thread
From: Kai Großjohann @ 2002-09-25 14:03 UTC (permalink / raw)


Michael Albinus <Michael.Albinus@alcatel.de> writes:

> It's reproducible here with Tramp 2.0.23. Looks like the recent change
> in acquiring the default method has side effects. For the time being
> you should write the method explicitly like "/telnet:user@host:"

Does this patch fix it?

--- tramp.el.~2.227.~	Tue Sep 24 18:21:10 2002
+++ tramp.el	Wed Sep 25 16:03:19 2002
@@ -4331,13 +4331,14 @@
 
 (defun tramp-action-password (p multi-method method user host)
   "Query the user for a password."
+  (let ((pw-prompt (match-string 0)))
   (when (tramp-method-out-of-band-p multi-method method user host)
     (kill-process (get-buffer-process (current-buffer)))
     (error (concat "Out of band method `%s' not applicable "
 		   "for remote shell asking for a password")
 	   method))
   (tramp-message 9 "Sending password")
-  (tramp-enter-password p (match-string 0)))
+  (tramp-enter-password p pw-prompt)))
 
 (defun tramp-action-succeed (p multi-method method user host)
   "Signal success in finding shell prompt."

kai
-- 
~/.signature is: umop 3p!sdn    (Frank Nobis)

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

* Re: Tramp
  2002-09-25 14:03   ` Tramp Kai Großjohann
@ 2002-09-25 15:25     ` Roger Mason
  2002-09-25 15:58       ` Tramp Kai Großjohann
  0 siblings, 1 reply; 13+ messages in thread
From: Roger Mason @ 2002-09-25 15:25 UTC (permalink / raw)
  Cc: help-gnu-emacs

That fixed it.  Thanks.

Roger Mason

On Wed, 25 Sep 2002, Kai [iso-8859-15] Großjohann wrote:

> Michael Albinus <Michael.Albinus@alcatel.de> writes:
> 
> > It's reproducible here with Tramp 2.0.23. Looks like the recent change
> > in acquiring the default method has side effects. For the time being
> > you should write the method explicitly like "/telnet:user@host:"
> 
> Does this patch fix it?
> 
> --- tramp.el.~2.227.~	Tue Sep 24 18:21:10 2002
> +++ tramp.el	Wed Sep 25 16:03:19 2002
> @@ -4331,13 +4331,14 @@
>  
>  (defun tramp-action-password (p multi-method method user host)
>    "Query the user for a password."
> +  (let ((pw-prompt (match-string 0)))
>    (when (tramp-method-out-of-band-p multi-method method user host)
>      (kill-process (get-buffer-process (current-buffer)))
>      (error (concat "Out of band method `%s' not applicable "
>  		   "for remote shell asking for a password")
>  	   method))
>    (tramp-message 9 "Sending password")
> -  (tramp-enter-password p (match-string 0)))
> +  (tramp-enter-password p pw-prompt)))
>  
>  (defun tramp-action-succeed (p multi-method method user host)
>    "Signal success in finding shell prompt."
> 
> kai
> -- 
> ~/.signature is: umop 3p!sdn    (Frank Nobis)
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
> 

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

* Re: Tramp
  2002-09-25 15:25     ` Tramp Roger Mason
@ 2002-09-25 15:58       ` Kai Großjohann
  0 siblings, 0 replies; 13+ messages in thread
From: Kai Großjohann @ 2002-09-25 15:58 UTC (permalink / raw)
  Cc: help-gnu-emacs

Roger Mason <rmason@sparky2.esd.mun.ca> writes:

> That fixed it.  Thanks.

I will put it in the next version of Tramp.

kai
-- 
~/.signature is: umop 3p!sdn    (Frank Nobis)

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

* Re: tramp
       [not found] <mailman.1032894380.6606.help-gnu-emacs@gnu.org>
  2002-09-24 20:11 ` tramp Kai Großjohann
@ 2002-09-26 17:38 ` Michael P. Soulier
  2002-09-27 11:43   ` tramp Kai Großjohann
  1 sibling, 1 reply; 13+ messages in thread
From: Michael P. Soulier @ 2002-09-26 17:38 UTC (permalink / raw)


On Tue, 24 Sep 2002 16:35:37 -0230 (NDDT), Roger Mason
<rmason@sparky2.esd.mun.ca> wrote:
> 
> When I try to get a file from a my home dir on a remote machine:
> 
> /fred.here.there.everywhere:~/.emacs

    Ah! So that's the new syntax! It's really confusing having all that
documentation at tramp.sourceforge.net conflict with the new tramp. Is the
EmacsWiki up to date? I don't see tramp mentioned there. 

    Hmm. I just tried the new tramp to login to my box at home.

Args out of range: 0, 0

    This is in the tramp buffer:

Enter passphrase for key '/home/e-smith/files/users/msoulier/.ssh/id_rsa': 

    Mike

-- 
Michael P. Soulier <msoulier@storm.ca>, GnuPG pub key: 5BC8BE08
"...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort."  -Harley Hahn, A Student's Guide to Unix
HTML Email Considered Harmful: http://expita.com/nomime.html

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

* Re: tramp
  2002-09-26 17:38 ` tramp Michael P. Soulier
@ 2002-09-27 11:43   ` Kai Großjohann
  2002-09-27 12:15     ` tramp Roger Mason
  0 siblings, 1 reply; 13+ messages in thread
From: Kai Großjohann @ 2002-09-27 11:43 UTC (permalink / raw)


"Michael P. Soulier" <msoulier@storm.ca._nospam> writes:

> On Tue, 24 Sep 2002 16:35:37 -0230 (NDDT), Roger Mason
> <rmason@sparky2.esd.mun.ca> wrote:
>> 
>> When I try to get a file from a my home dir on a remote machine:
>> 
>> /fred.here.there.everywhere:~/.emacs
>
>     Ah! So that's the new syntax! It's really confusing having all that
> documentation at tramp.sourceforge.net conflict with the new tramp.

I'm sorry.  I really should change the SourceForge information.
[time passes]  I've now done it.

>     Hmm. I just tried the new tramp to login to my box at home.
>
> Args out of range: 0, 0
>
>     This is in the tramp buffer:
>
> Enter passphrase for key '/home/e-smith/files/users/msoulier/.ssh/id_rsa': 

Please submit a bug report, using M-x tramp-bug RET.  That also tells
you which information I need to successfully chase the bug.  In your
case, it's important to load tramp.el instead of tramp.elc and to
provide a backtrace (you get it if you do M-x toggle-debug-on-error
RET and the reproduce the error message).

kai
-- 
~/.signature is: umop ap!sdn    (Frank Nobis)

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

* Re: tramp
  2002-09-27 11:43   ` tramp Kai Großjohann
@ 2002-09-27 12:15     ` Roger Mason
  2002-09-27 13:59       ` tramp Carsten Dominik
  2002-09-27 14:19       ` tramp Kai Großjohann
  0 siblings, 2 replies; 13+ messages in thread
From: Roger Mason @ 2002-09-27 12:15 UTC (permalink / raw)


Hello,

Please forgive my ignorance, but how do I ensure loading of tramp.el & not
tramp.elc?

Thanks,

Roger

On Fri, 27 Sep 2002, Kai [iso-8859-15] Großjohann wrote:

> "Michael P. Soulier" <msoulier@storm.ca._nospam> writes:
> 
> > On Tue, 24 Sep 2002 16:35:37 -0230 (NDDT), Roger Mason
> > <rmason@sparky2.esd.mun.ca> wrote:
> >> 
> >> When I try to get a file from a my home dir on a remote machine:
> >> 
> >> /fred.here.there.everywhere:~/.emacs
> >
> >     Ah! So that's the new syntax! It's really confusing having all that
> > documentation at tramp.sourceforge.net conflict with the new tramp.
> 
> I'm sorry.  I really should change the SourceForge information.
> [time passes]  I've now done it.
> 
> >     Hmm. I just tried the new tramp to login to my box at home.
> >
> > Args out of range: 0, 0
> >
> >     This is in the tramp buffer:
> >
> > Enter passphrase for key '/home/e-smith/files/users/msoulier/.ssh/id_rsa': 
> 
> Please submit a bug report, using M-x tramp-bug RET.  That also tells
> you which information I need to successfully chase the bug.  In your
> case, it's important to load tramp.el instead of tramp.elc and to
> provide a backtrace (you get it if you do M-x toggle-debug-on-error
> RET and the reproduce the error message).
> 
> kai
> -- 
> ~/.signature is: umop ap!sdn    (Frank Nobis)
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
> 

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

* Re: tramp
  2002-09-27 12:15     ` tramp Roger Mason
@ 2002-09-27 13:59       ` Carsten Dominik
  2002-09-27 14:19       ` tramp Kai Großjohann
  1 sibling, 0 replies; 13+ messages in thread
From: Carsten Dominik @ 2002-09-27 13:59 UTC (permalink / raw)


>>>>> "RM" == Roger Mason <rmason@sparky2.esd.mun.ca> writes:

RM> Hello, Please forgive my ignorance, but how do I ensure loading of
RM> tramp.el & not tramp.elc?



Either remove tramp.elc, or load tramp.el explicitly with

M-x load-file /path/to/tramp.el RET

- Carsten

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

* Re: tramp
  2002-09-27 12:15     ` tramp Roger Mason
  2002-09-27 13:59       ` tramp Carsten Dominik
@ 2002-09-27 14:19       ` Kai Großjohann
  1 sibling, 0 replies; 13+ messages in thread
From: Kai Großjohann @ 2002-09-27 14:19 UTC (permalink / raw)


Roger Mason <rmason@sparky2.esd.mun.ca> writes:

> Please forgive my ignorance, but how do I ensure loading of tramp.el & not
> tramp.elc?

You could delete tramp.elc, for example :-)

Or say (load "tramp.el") in your .emacs file.

kai
-- 
~/.signature is: umop ap!sdn    (Frank Nobis)

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

* tramp
@ 2002-10-01 23:59 ftrw
       [not found] ` <nq8z1hl42y.fsf@alcatel.de>
  0 siblings, 1 reply; 13+ messages in thread
From: ftrw @ 2002-10-01 23:59 UTC (permalink / raw)


Hi,

I was using tramp last week and it worked.  Now it does not work.  I
suppose I added some new packages (w3 and gnuserv) and tweaked my
.emacs but I cannot figure out what.  Here are the symptoms:

 C-x C-f begins to find a file 

 I clear the minibuffer line and type '/' <TAB> <TAB> and a
 completions list window pops up, showing me all of the files and
 directories in my / directory and all of the hosts in my
 ~/.ssh/known_hosts file.

 I can complete the machine name, as '/machine.uaf.edu:' and when
 I hit <TAB> again, I get a [no match] command.

 If I complete the file name by typing it, as 
 '/machine.uaf.edu:.emacs', I get a message that says:

     'File not found and directory write-protected'

 It is trying to create a file in my root directory.  So tramp finds
 my ~/.ssh/known_hosts file ok but then the connection is not
 happening.

Thank you for any help.

Ryan

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

* Re: tramp
       [not found] ` <nq8z1hl42y.fsf@alcatel.de>
@ 2002-10-03  2:13   ` ftrw
  0 siblings, 0 replies; 13+ messages in thread
From: ftrw @ 2002-10-03  2:13 UTC (permalink / raw)


Michael Albinus <Michael.Albinus@alcatel.de> writes:

> ftrw@uaf.edu writes:
> 
> >  If I complete the file name by typing it, as 
> >  '/machine.uaf.edu:.emacs', I get a message that says:
> > 
> >      'File not found and directory write-protected'
> > 
> >  It is trying to create a file in my root directory.  So tramp finds
> >  my ~/.ssh/known_hosts file ok but then the connection is not
> >  happening.
> 
> Could you, pls, perform `M-x tramp-bug', and follow the instructions
> there? Additionally, you shall provide the contents of the buffers
> `*tramp/ssh ftrw@machine.uaf.edu*' and `*debug tramp/ssh
> ftrw@machine.uaf.edu*' (given you're using ssh as default method).

I think it was a version issue in debian.  I updated some packages
(which is done automatically through a mirror) and seem to have
received something out of date.

I traced it down to:

file-name-handler-alist's value is 
(("\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'\\|\\.bz2\\'\\|\\.tgz\\'\\|\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'" . jka-compr-handler)
 ("^/[^/]*$" . tramp-completion-file-name-handler)
 ("\\`/[^/:]+:" . tramp-file-name-handler)
 ("\\`/:" . file-name-non-special))

The regexp for the tramp-file-name-handler variable was slightly
different.  Somehow in my /etc/emacs/site-start.d directory, the
50tramp.el was an older one, as another one in the same directory
called 50tramp_debpkg.el (or something like that--obviously something
from the debian packageing) was identical to the one that I get now
when I reinstall tramp.  I found this out by comparing the
/etc/emacs/site-start.d directory on a different machine that I loaded
tramp to today.  So things work now after purging and reinstalling
tramp.  There is no more 50tramp_debpkg.el file to be seen.

So I think I may have caught a debian mirror with an old update.

Thanks for the good work.

Ryan

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

end of thread, other threads:[~2002-10-03  2:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1032957382.1320.help-gnu-emacs@gnu.org>
     [not found] ` <nqfzvyjji1.fsf@alcatel.de>
2002-09-25 14:03   ` Tramp Kai Großjohann
2002-09-25 15:25     ` Tramp Roger Mason
2002-09-25 15:58       ` Tramp Kai Großjohann
2002-10-01 23:59 tramp ftrw
     [not found] ` <nq8z1hl42y.fsf@alcatel.de>
2002-10-03  2:13   ` tramp ftrw
     [not found] <mailman.1032894380.6606.help-gnu-emacs@gnu.org>
2002-09-24 20:11 ` tramp Kai Großjohann
2002-09-26 17:38 ` tramp Michael P. Soulier
2002-09-27 11:43   ` tramp Kai Großjohann
2002-09-27 12:15     ` tramp Roger Mason
2002-09-27 13:59       ` tramp Carsten Dominik
2002-09-27 14:19       ` tramp Kai Großjohann
  -- strict thread matches above, loose matches on Subject: below --
2002-09-25 12:34 Tramp Roger Mason
2002-09-24  8:59 How to make emacs auto-recognize utf-8 encoded files upon visiting Charles Muller
2002-09-24 19:05 ` tramp Roger Mason

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).