Kai Großjohann | 2 Nov 2002 19:14
Picon
Favicon

Re: Tramp and NT-Emacs with plink

Douglas Gray Stephens <gray <at> cambridge.oilfield.slb.com> writes:

> If tramp needs md5, should this be included in the contrib directory?

Yes, I'm working on it at this moment.  Could you please check out
the new version from CVS to see if it works for you?

It was not so easy since Gnus didn't have it in Lisp :-)  But I found
a version in the Emacs Lisp List.

kai
--

-- 
~/.signature is: umop ap!sdn    (Frank Nobis)
Douglas Gray Stephens | 3 Nov 2002 00:01
Picon

Re: Tramp and NT-Emacs with plink


Kai,

At 19:14 (GMT+0100) on 2-November-2002, Kai Großjohann wrote:
 > Douglas Gray Stephens <gray <at> cambridge.oilfield.slb.com> writes:
 > 
 > > If tramp needs md5, should this be included in the contrib directory?
 > 
 > Yes, I'm working on it at this moment.  Could you please check out
 > the new version from CVS to see if it works for you?
 > 
 > It was not so easy since Gnus didn't have it in Lisp :-)  But I found
 > a version in the Emacs Lisp List.

I've picked up the latest updates from CVS, but I'm getting an error
on loading tramp
  Symbol's function definition is void: tramp-md5-function

Douglas.
Kai Großjohann | 3 Nov 2002 15:23
Picon
Favicon

Re: Tramp and NT-Emacs with plink

Douglas Gray Stephens <gray <at> cambridge.oilfield.slb.com> writes:

> I've picked up the latest updates from CVS, but I'm getting an error
> on loading tramp
>   Symbol's function definition is void: tramp-md5-function

Yes, I had an "'" too many.  Will commit the fix in a jiffy.

kai
--

-- 
~/.signature is: umop ap!sdn    (Frank Nobis)
Douglas Gray Stephens | 3 Nov 2002 23:38
Picon

Re: Tramp and NT-Emacs with plink


Kai,

At 15:23 (GMT+0100) on 3-November-2002, Kai Großjohann wrote:
 > Douglas Gray Stephens <gray <at> cambridge.oilfield.slb.com> writes:
 > 
 > > I've picked up the latest updates from CVS, but I'm getting an error
 > > on loading tramp
 > >   Symbol's function definition is void: tramp-md5-function
 > 
 > Yes, I had an "'" too many.  Will commit the fix in a jiffy.

I've picked up the latest version (2.0.25)
 2002-11-03  Kai Grossjohann  <kai.grossjohann <at> uni-duisbuurg.de>
	* tramp.el (tramp-end-of-output): Fix last change.

but I get another error
 File error: "Searching for program", "no such file or directory", "md5"

I can successfully eval
 (require md5)
and if I set debug-on-error, then do
 load-library tramp
I see

  call-process-region(1 11980 "md5" "d:/Temp/ema02208" #<buffer  *md5-work*>)
  (save-excursion (set-buffer (get-buffer-create " *md5-work*")) (erase-buffer) (insert message)
(call-process-region (point-min) (point-max) md5-program t (current-buffer)) (let (... ... ...)
(while ... ... ...)))
  (if (<= (length message) md5-maximum-internal-length) (progn (md5-init) (md5-update message)
(Continue reading)

Kai Großjohann | 5 Nov 2002 18:12
Picon

Re: Tramp and NT-Emacs with plink

Douglas Gray Stephens <gray <at> cambridge.oilfield.slb.com> writes:

> I've picked up the latest version (2.0.25)
>  2002-11-03  Kai Grossjohann  <kai.grossjohann <at> uni-duisbuurg.de>
> 	* tramp.el (tramp-end-of-output): Fix last change.
>
> but I get another error
>  File error: "Searching for program", "no such file or directory", "md5"

Ick.  md5.el says that it looks to see if the buffer is small.  If it
is big, it invokes the external program.

I suggest that you try to change what "small" means and then I hope
it will use Lisp.  (setq md5-maximum-internal-length
most-positive-fixnum) appears to be useful.  On older Emacsen, you
might need (require 'cl) before it.

Does this work?

kai
--

-- 
~/.signature is: umop ap!sdn    (Frank Nobis)
Steve Pothier | 7 Nov 2002 04:20
Picon
Favicon

filename format not right in INFO file


The INFO for tramp-2.0.25 would seem to indicate that something like
  C-x C-f /[sm/myname <at> my.host.com].emacs
should work under Emacs.

I tried that and got no indication that any TRAMP thing was being activited.
I finally looked more carefully at the REGEXP used in
tramp-file-name-structure to figure out what I needed.  That plus the "star
wars approach" (Use the Source, Luke) lead me to something more like:
   C-x C-f /ssh:myname <at> my.host.com#1234:.emacs

Still doesn't quite work for me (hangs) but it asks for a password and
connects. It seems that the documentation (or even the README) could have an
example such as the above added as an aid.

-sp-
Michael Albinus | 7 Nov 2002 08:38
Picon
Picon

Re: filename format not right in INFO file

Steve Pothier <pothiers <at> azstarnet.com> writes:

> The INFO for tramp-2.0.25 would seem to indicate that something like
>   C-x C-f /[sm/myname <at> my.host.com].emacs
> should work under Emacs.
> 
> I tried that and got no indication that any TRAMP thing was being activited.
> I finally looked more carefully at the REGEXP used in
> tramp-file-name-structure to figure out what I needed.  That plus the "star
> wars approach" (Use the Source, Luke) lead me to something more like:
>    C-x C-f /ssh:myname <at> my.host.com#1234:.emacs
> 
> Still doesn't quite work for me (hangs) but it asks for a password and
> connects. It seems that the documentation (or even the README) could have an
> example such as the above added as an aid.

The INFO files explain the file name format depending on which
Emacs flavor has been used generating them. If XEmacs has been
used, the [ssh/myname <at> my.host.com] syntax will be shown, otherwise the
/ssh:myname <at> my.host.com: syntax. See Makefile and tramp.texi in
.../tramp/texi/ (Use the source, Luke ;-)

So I guess you've used something like "EMACS=xemacs" applying make.

Or you have very old INFO files generated before this syntax change
has happened (half a year ago I guess). The method "sm" in your
example is an indication for that assumption. This method is outdated,
and it isn't mentioned in the Tramp 2.0.25 INFO pages, I hope.

> -sp-
(Continue reading)

Matthijs Atlan Corpeleijn | 7 Nov 2002 21:49
Picon

Previous message :)

Uhm. That's time-date of course.. *cough*

Mad.
Matthijs Atlan Corpeleijn | 7 Nov 2002 21:48
Picon

Error in tramp.el .25

Not sure if this has been fixed, but I don't have much access, etc.

subtract-time is not defined in any of the required modules in tramp.el
itself, found out it is defined in gnus/time-date.el, which I don't load
by default.

Should be a (require 'date-time) in tramp.el

Mad.
Michael Albinus | 8 Nov 2002 09:10
Picon
Picon

Re: filename format not right in INFO file

idt <idt <at> spambusters.net> writes:

> Thanks.  Now that you mention it my make failed on the
> texinfo. Apparently the texi uses some syntax that my makeinfo
> (version 4.0) doesn't know about.  Then I wrongly picked up an old
> info file installed elsewhere and assumed that enuf of the build
> worked.... an exceedingly silly assumption!
> 
> Guess I better get a clean build to get good docs!
> 
> -sp-
> 
> makeinfo --footnote-style=end --no-split -o ../info/tramp tramp.texi
> tramp.texi:66: Unknown command `copying'.
> tramp.texi:88: Unmatched ` <at> end'.
> tramp.texi:143: Unknown command `insertcopying'.
> makeinfo: Removing output file `../info/tramp' due to errors; use
> --force to preserve.
> make[1]: *** [tramp] Error 2
> make[1]: Leaving directory `/home/swl/tramp-2.0.25/texi'
> make: *** [all] Error 2

You need a recent texinfo (4.2 or so).   <at> copying and  <at> insertcopying
are new commands.

Best regards, Michael.

Gmane