all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* tramp & numberp
@ 2010-10-24 14:07 Andrea Crotti
  2010-10-24 14:12 ` Andrea Crotti
  2010-10-24 15:59 ` Michael Albinus
  0 siblings, 2 replies; 30+ messages in thread
From: Andrea Crotti @ 2010-10-24 14:07 UTC (permalink / raw
  To: help-gnu-emacs

Opening a connection to a virtual machina I've used until 10 minutes ago
I got this error below.

Now I don't get what the problem is, since all the files in the
directory written there don't appear to be strange.
What can make the function tramp-convert-file-attributes going so crazy?

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument numberp 1287926791\.000000000\.0)
  floor(1287926791\.000000000\.0 65536)
  tramp-convert-file-attributes(["ssh" nil "arch" "/root/wifi-git/wifi-fw/libwifi-fw/"] (("`/root/wifi-git/wifi-fw/libwifi-fw/'") 4 0 0 1287926791\.000000000\.0 1287925867\.000000000\.0 1287925867\.000000000\.0 4096.0 "drwxr-xr-x" t 134754.0 -1))
  tramp-handle-file-attributes("/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
  apply(tramp-handle-file-attributes "/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
  tramp-sh-file-name-handler(file-attributes "/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
  apply(tramp-sh-file-name-handler file-attributes "/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
  tramp-file-name-handler(file-attributes "/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
  file-attributes("/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
  ido-directory-too-big-p("/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
  ido-set-current-directory("/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
  ido-prev-work-directory()
  call-interactively(ido-prev-work-directory nil nil)
  ad-Orig-completing-read("Find file: ~/bash_conf/" (("dummy" . 1)) nil nil "" ido-file-history nil nil)
  completing-read("Find file: ~/bash_conf/" (("dummy" . 1)) nil nil "" ido-file-history)
  byte-code("\304\305\b	\"\306\307\211\n\307\v&\207" [item prompt ido-text-init history completing-read ido-make-prompt (("dummy" . 1)) nil] 7)
  ad-Orig-ido-read-internal(file "Find file: " ido-file-history nil confirm-after-completion nil)
  ido-read-internal(file "Find file: " ido-file-history nil confirm-after-completion nil)
  ido-file-internal(raise-frame)
  ido-find-file()
  call-interactively(ido-find-file nil nil)
--8<---------------cut here---------------end--------------->8---




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

* Re: tramp & numberp
  2010-10-24 14:07 tramp & numberp Andrea Crotti
@ 2010-10-24 14:12 ` Andrea Crotti
  2010-10-24 15:59 ` Michael Albinus
  1 sibling, 0 replies; 30+ messages in thread
From: Andrea Crotti @ 2010-10-24 14:12 UTC (permalink / raw
  To: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

> Opening a connection to a virtual machina I've used until 10 minutes ago
> I got this error below.
>
> Now I don't get what the problem is, since all the files in the
> directory written there don't appear to be strange.
> What can make the function tramp-convert-file-attributes going so crazy?
>
> Debugger entered--Lisp error: (wrong-type-argument numberp 1287926791\.000000000\.0)
>   floor(1287926791\.000000000\.0 65536)
>   tramp-convert-file-attributes(["ssh" nil "arch" "/root/wifi-git/wifi-fw/libwifi-fw/"] (("`/root/wifi-git/wifi-fw/libwifi-fw/'") 4 0 0 1287926791\.000000000\.0 1287925867\.000000000\.0 1287925867\.000000000\.0 4096.0 "drwxr-xr-x" t 134754.0 -1))
>   tramp-handle-file-attributes("/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
>   apply(tramp-handle-file-attributes "/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
>   tramp-sh-file-name-handler(file-attributes "/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
>   apply(tramp-sh-file-name-handler file-attributes "/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
>   tramp-file-name-handler(file-attributes "/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
>   file-attributes("/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
>   ido-directory-too-big-p("/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
>   ido-set-current-directory("/ssh:arch:/root/wifi-git/wifi-fw/libwifi-fw/")
>   ido-prev-work-directory()
>   call-interactively(ido-prev-work-directory nil nil)
>   ad-Orig-completing-read("Find file: ~/bash_conf/" (("dummy" . 1)) nil nil "" ido-file-history nil nil)
>   completing-read("Find file: ~/bash_conf/" (("dummy" . 1)) nil nil "" ido-file-history)
>   byte-code("\304\305\b	\"\306\307\211\n\307\v&\207" [item prompt ido-text-init history completing-read ido-make-prompt (("dummy" . 1)) nil] 7)
>   ad-Orig-ido-read-internal(file "Find file: " ido-file-history nil confirm-after-completion nil)
>   ido-read-internal(file "Find file: " ido-file-history nil confirm-after-completion nil)
>   ido-file-internal(raise-frame)
>   ido-find-file()
>   call-interactively(ido-find-file nil nil)

I can add that other remote machines work perfectly fine, but on this
one everything I try to open I get the same error...




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

* Re: tramp & numberp
  2010-10-24 14:07 tramp & numberp Andrea Crotti
  2010-10-24 14:12 ` Andrea Crotti
@ 2010-10-24 15:59 ` Michael Albinus
  2010-10-24 16:06   ` Andrea Crotti
  2010-10-24 16:09   ` Andrea Crotti
  1 sibling, 2 replies; 30+ messages in thread
From: Michael Albinus @ 2010-10-24 15:59 UTC (permalink / raw
  To: Andrea Crotti; +Cc: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

> Now I don't get what the problem is, since all the files in the
> directory written there don't appear to be strange.
> What can make the function tramp-convert-file-attributes going so crazy?
>
> Debugger entered--Lisp error: (wrong-type-argument numberp 1287926791\.000000000\.0)
>   floor(1287926791\.000000000\.0 65536)

See <http://thread.gmane.org/gmane.emacs.tramp/7493/focus=7498>.

Best regards, Michael.



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

* Re: tramp & numberp
  2010-10-24 15:59 ` Michael Albinus
@ 2010-10-24 16:06   ` Andrea Crotti
  2010-10-24 16:09   ` Andrea Crotti
  1 sibling, 0 replies; 30+ messages in thread
From: Andrea Crotti @ 2010-10-24 16:06 UTC (permalink / raw
  To: help-gnu-emacs

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

> See <http://thread.gmane.org/gmane.emacs.tramp/7493/focus=7498>.
>
> Best regards, Michael.
Ah great, has been fixed already.

But now I'm using the version shipped with emacs, and the newest I found
was a lot prior to that patch
http://ftp.gnu.org/gnu/tramp/

And also there is only a cvs access, should I just patch it myself or
try to access to the last version of tramp?




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

* Re: tramp & numberp
  2010-10-24 15:59 ` Michael Albinus
  2010-10-24 16:06   ` Andrea Crotti
@ 2010-10-24 16:09   ` Andrea Crotti
  2010-10-25  7:08     ` Michael Albinus
  2010-10-25  7:12     ` Andrea Crotti
  1 sibling, 2 replies; 30+ messages in thread
From: Andrea Crotti @ 2010-10-24 16:09 UTC (permalink / raw
  To: help-gnu-emacs

Michael Albinus <michael.albinus@gmx.de> writes:
> See <http://thread.gmane.org/gmane.emacs.tramp/7493/focus=7498>.
>
> Best regards, Michael.

With
GNU Emacs 23.2.1 (x86_64-apple-darwin10.3.0, NS apple-appkit-1038.29) of
2010-05-09 on linc
I can't even find the file tramp-sh.el...





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

* Re: tramp & numberp
  2010-10-24 16:09   ` Andrea Crotti
@ 2010-10-25  7:08     ` Michael Albinus
  2010-10-26  9:11       ` Andrea Crotti
  2010-10-25  7:12     ` Andrea Crotti
  1 sibling, 1 reply; 30+ messages in thread
From: Michael Albinus @ 2010-10-25  7:08 UTC (permalink / raw
  To: Andrea Crotti; +Cc: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

> With
> GNU Emacs 23.2.1 (x86_64-apple-darwin10.3.0, NS apple-appkit-1038.29) of
> 2010-05-09 on linc
> I can't even find the file tramp-sh.el...

Yes, that patch I've referred to was for Tramp 2.2. For Tramp 2.1.18
(bundled with Emacs 23.2), you might apply the following patch:

--8<---------------cut here---------------start------------->8---
*** ~/src/emacs-23/lisp/net/tramp.el.~99642~	2010-10-25 09:00:04.640285001 +0200
--- ~/src/emacs-23/lisp/net/tramp.el	2010-10-21 08:24:16.448917001 +0200
***************
*** 2816,2822 ****
    (tramp-send-command-and-read
     vec
     (format
!     "((%s %s || %s -h %s) && %s -c '((\"%%N\") %%h %s %s %%X.0 %%Y.0 %%Z.0 %%s.0 \"%%A\" t %%i.0 -1)' %s || echo nil)"
      (tramp-get-file-exists-command vec)
      (tramp-shell-quote-argument localname)
      (tramp-get-test-command vec)
--- 2816,2822 ----
    (tramp-send-command-and-read
     vec
     (format
!     "( (%s %s || %s -h %s) && %s -c '( (\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)' %s || echo nil)"
      (tramp-get-file-exists-command vec)
      (tramp-shell-quote-argument localname)
      (tramp-get-test-command vec)
***************
*** 3223,3229 ****
       ;; but it does not work on all remote systems.  Therefore, we
       ;; quote the filenames via sed.
       "cd %s; echo \"(\"; (%s -a | sed -e s/\\$/\\\"/g -e s/^/\\\"/g | xargs "
!      "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%X.0 %%Y.0 %%Z.0 %%s.0 \"%%A\" t %%i.0 -1)'); "
       "echo \")\"")
      (tramp-shell-quote-argument localname)
      (tramp-get-ls-command vec)
--- 3223,3229 ----
       ;; but it does not work on all remote systems.  Therefore, we
       ;; quote the filenames via sed.
       "cd %s; echo \"(\"; (%s -a | sed -e s/\\$/\\\"/g -e s/^/\\\"/g | xargs "
!      "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)'); "
       "echo \")\"")
      (tramp-shell-quote-argument localname)
      (tramp-get-ls-command vec)
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.



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

* Re: tramp & numberp
  2010-10-24 16:09   ` Andrea Crotti
  2010-10-25  7:08     ` Michael Albinus
@ 2010-10-25  7:12     ` Andrea Crotti
  2010-10-25  9:36       ` Michael Albinus
  1 sibling, 1 reply; 30+ messages in thread
From: Andrea Crotti @ 2010-10-25  7:12 UTC (permalink / raw
  To: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

In the end I thought to use emacsmirror on github
http://github.com/emacsmirror/tramp

which looks quite up to date and then I can use a git submodule (and
surely patched already)...

But following the instructions the configuration fails:
Opening output file: No such file or directory,
/Users/lstoll/tmp/emacs-23.2/lisp/tramp-loaddefs.el

and what's the "lstoll" (not a user on my system).
I grepped it everywhere and it's not there this string also...

Thanks,
Andrea




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

* Re: tramp & numberp
  2010-10-25  7:12     ` Andrea Crotti
@ 2010-10-25  9:36       ` Michael Albinus
  2010-10-25 11:16         ` Andrea Crotti
  0 siblings, 1 reply; 30+ messages in thread
From: Michael Albinus @ 2010-10-25  9:36 UTC (permalink / raw
  To: Andrea Crotti; +Cc: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

> But following the instructions the configuration fails:
> Opening output file: No such file or directory,
> /Users/lstoll/tmp/emacs-23.2/lisp/tramp-loaddefs.el

I do not know how this mirror works. However, Tramp 2.2 (where this
version belongs to) has seen changes in the Makefile in order to
generate tramp-loaddefs.el. Maybe it is sufficient for you to apply "make".

> Thanks,
> Andrea

Best regards, Michael.



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

* Re: tramp & numberp
  2010-10-25  9:36       ` Michael Albinus
@ 2010-10-25 11:16         ` Andrea Crotti
  2010-10-25 11:51           ` Michael Albinus
  0 siblings, 1 reply; 30+ messages in thread
From: Andrea Crotti @ 2010-10-25 11:16 UTC (permalink / raw
  To: help-gnu-emacs

Michael Albinus <michael.albinus@gmx.de> writes:
>
> I do not know how this mirror works. However, Tramp 2.2 (where this
> version belongs to) has seen changes in the Makefile in order to
> generate tramp-loaddefs.el. Maybe it is sufficient for you to apply "make".
>

Mm no still doesn't work unfortunately.
That mirror is an automatic importation from CVS, so it should not make
any difference...




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

* Re: tramp & numberp
  2010-10-25 11:16         ` Andrea Crotti
@ 2010-10-25 11:51           ` Michael Albinus
  2010-10-25 12:26             ` Andrea Crotti
  0 siblings, 1 reply; 30+ messages in thread
From: Michael Albinus @ 2010-10-25 11:51 UTC (permalink / raw
  To: Andrea Crotti; +Cc: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

> Mm no still doesn't work unfortunately.
> That mirror is an automatic importation from CVS, so it should not make
> any difference...

How did you build Tramp? The usual way is

# autoconf; ./configure; make

Best regards, Michael.



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

* Re: tramp & numberp
  2010-10-25 11:51           ` Michael Albinus
@ 2010-10-25 12:26             ` Andrea Crotti
  2010-10-25 12:40               ` Michael Albinus
  0 siblings, 1 reply; 30+ messages in thread
From: Andrea Crotti @ 2010-10-25 12:26 UTC (permalink / raw
  To: help-gnu-emacs

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

> Andrea Crotti <andrea.crotti.0@gmail.com> writes:
>
>> Mm no still doesn't work unfortunately.
>> That mirror is an automatic importation from CVS, so it should not make
>> any difference...
>
> How did you build Tramp? The usual way is
>
> # autoconf; ./configure; make
>
> Best regards, Michael.

Yes sure exactly what I did.
I remembered some months ago I compiled tramp without problems, so
unless my osx got crazy there is something else (I'm not 100% sure
that the git mirror is the same, but from the logs it looks like)...




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

* Re: tramp & numberp
  2010-10-25 12:26             ` Andrea Crotti
@ 2010-10-25 12:40               ` Michael Albinus
  2010-10-25 12:45                 ` Andrea Crotti
  2010-10-25 12:48                 ` Andrea Crotti
  0 siblings, 2 replies; 30+ messages in thread
From: Michael Albinus @ 2010-10-25 12:40 UTC (permalink / raw
  To: Andrea Crotti; +Cc: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

>> How did you build Tramp? The usual way is
>>
>> # autoconf; ./configure; make
>>
>> Best regards, Michael.
>
> Yes sure exactly what I did.
> I remembered some months ago I compiled tramp without problems, so
> unless my osx got crazy there is something else (I'm not 100% sure
> that the git mirror is the same, but from the logs it looks like)...

Does your lisp/Makefile contains a rule about tramp-loaddefs.el? Does
the make call generates this file?

Best regards, Michael.



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

* Re: tramp & numberp
  2010-10-25 12:40               ` Michael Albinus
@ 2010-10-25 12:45                 ` Andrea Crotti
  2010-10-25 13:54                   ` Michael Albinus
  2010-10-25 12:48                 ` Andrea Crotti
  1 sibling, 1 reply; 30+ messages in thread
From: Andrea Crotti @ 2010-10-25 12:45 UTC (permalink / raw
  To: help-gnu-emacs

Michael Albinus <michael.albinus@gmx.de> writes:
> Does your lisp/Makefile contains a rule about tramp-loaddefs.el? Does
> the make call generates this file?
>
> Best regards, Michael.

Yes it does, this is what happens
--8<---------------cut here---------------start------------->8---
ip1-201:tramp andrea$ make
/Applications/Emacs.app/Contents/MacOS/Emacs --no-site-file -batch -l autoload						    \
	  --eval "(setq generate-autoload-cookie \";;;###tramp-autoload\")" \
	  --eval "(setq generated-autoload-file \"tramp-loaddefs.el\")"		    \
	  --eval "(setq make-backup-files nil)"				    \
	  --eval "(unless (string-equal \"emacs\" \"emacs\")	    \
		    (defalias 'autoload-trim-file-name			    \
			      'file-name-sans-extension))"		    \
	  -f batch-update-autoloads /Users/andrea/Documents/pycon/tramp/lisp
Opening output file: no such file or directory, /Users/lstoll/tmp/emacs-23.2/lisp/tramp-loaddefs.el
make[1]: *** [tramp-loaddefs.el] Error 255
--8<---------------cut here---------------end--------------->8---

the loaddefs is also in the Makefile.in actually..
Now I try with the CVS version to see if it's really the same




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

* Re: tramp & numberp
  2010-10-25 12:40               ` Michael Albinus
  2010-10-25 12:45                 ` Andrea Crotti
@ 2010-10-25 12:48                 ` Andrea Crotti
  1 sibling, 0 replies; 30+ messages in thread
From: Andrea Crotti @ 2010-10-25 12:48 UTC (permalink / raw
  To: help-gnu-emacs

Michael Albinus <michael.albinus@gmx.de> writes:
> Does your lisp/Makefile contains a rule about tramp-loaddefs.el? Does
> the make call generates this file?
>
> Best regards, Michael.

Ok also on the source got from
cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/tramp co .

I get the same error, maybe some problems with OSX?
(my version):
GNU Emacs 23.2.1 (x86_64-apple-darwin10.3.0, NS apple-appkit-1038.29) of 2010-05-09 on linc




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

* Re: tramp & numberp
  2010-10-25 12:45                 ` Andrea Crotti
@ 2010-10-25 13:54                   ` Michael Albinus
  2010-10-25 15:01                     ` Andrea Crotti
  0 siblings, 1 reply; 30+ messages in thread
From: Michael Albinus @ 2010-10-25 13:54 UTC (permalink / raw
  To: Andrea Crotti; +Cc: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

> /Applications/Emacs.app/Contents/MacOS/Emacs --no-site-file -batch -l autoload						    \

Which Emacs version is that?

> 	  -f batch-update-autoloads /Users/andrea/Documents/pycon/tramp/lisp

OK, your Tramp installation is at /Users/andrea/Documents/pycon/tramp.

> Opening output file: no such file or directory, /Users/lstoll/tmp/emacs-23.2/lisp/tramp-loaddefs.el

Why does Emacs tries to write at /Users/lstoll/tmp/emacs-23.2/lisp/? It
shall write at the same directory /Users/andrea/Documents/pycon/tramp.

Have you been in the Tramp install directory? Ie., have you done

# cd /Users/andrea/Documents/pycon/tramp

Are there any symbolic links between those directories?

Best regards, Michael.



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

* Re: tramp & numberp
  2010-10-25 13:54                   ` Michael Albinus
@ 2010-10-25 15:01                     ` Andrea Crotti
  2010-10-25 15:33                       ` Michael Albinus
  0 siblings, 1 reply; 30+ messages in thread
From: Andrea Crotti @ 2010-10-25 15:01 UTC (permalink / raw
  To: help-gnu-emacs

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

> Andrea Crotti <andrea.crotti.0@gmail.com> writes:
>
>> /Applications/Emacs.app/Contents/MacOS/Emacs --no-site-file -batch -l autoload						    \
>
> Which Emacs version is that?
>

I should make it as my signature :D
GNU Emacs 23.2.1 (x86_64-apple-darwin10.3.0, NS apple-appkit-1038.29) of
2010-05-09 on linc
>
> OK, your Tramp installation is at /Users/andrea/Documents/pycon/tramp.
yes correct
>
> Why does Emacs tries to write at /Users/lstoll/tmp/emacs-23.2/lisp/?
> Itshall write at the same directory
> /Users/andrea/Documents/pycon/tramp.

No idea...

>
> Have you been in the Tramp install directory? Ie., have you done
>
> # cd /Users/andrea/Documents/pycon/tramp
>
> Are there any symbolic links between those directories?
>
> Best regards, Michael.
yes I'm in that dir, and no there are no links..




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

* Re: tramp & numberp
  2010-10-25 15:01                     ` Andrea Crotti
@ 2010-10-25 15:33                       ` Michael Albinus
  2010-10-25 15:41                         ` Andrea Crotti
  0 siblings, 1 reply; 30+ messages in thread
From: Michael Albinus @ 2010-10-25 15:33 UTC (permalink / raw
  To: Andrea Crotti; +Cc: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

>> OK, your Tramp installation is at /Users/andrea/Documents/pycon/tramp.
> yes correct
>>
>> Why does Emacs tries to write at /Users/lstoll/tmp/emacs-23.2/lisp/?
>> Itshall write at the same directory
>> /Users/andrea/Documents/pycon/tramp.
>
> No idea...
>
>>
>> Have you been in the Tramp install directory? Ie., have you done
>>
>> # cd /Users/andrea/Documents/pycon/tramp
>>
>> Are there any symbolic links between those directories?
>>
>> Best regards, Michael.
> yes I'm in that dir, and no there are no links..

Than I'm lost. You could try with make --debug, but I don't expect too
much information from ...

Anybody else having this trouble with Tramp 2.2?

Best regards, Michael.



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

* Re: tramp & numberp
  2010-10-25 15:33                       ` Michael Albinus
@ 2010-10-25 15:41                         ` Andrea Crotti
  2010-10-25 18:30                           ` Michael Albinus
  0 siblings, 1 reply; 30+ messages in thread
From: Andrea Crotti @ 2010-10-25 15:41 UTC (permalink / raw
  To: help-gnu-emacs

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

>
> Than I'm lost. You could try with make --debug, but I don't expect too
> much information from ...
>
> Anybody else having this trouble with Tramp 2.2?
>
> Best regards, Michael.

Yes me too :)
But why there is a directory
tramp/lisp
and a directory
tramp2?

Also in tramp/lisp there is version 2.20-pre and in the other the CVS
id.
The thing I really don't get is where the hell this "lstoll" comes from,
it's not a user at all in my system and it's not anywhere in the
makefiles.

There must be some call that doesn't work very nicely on the mac and
gives crazy results.




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

* Re: tramp & numberp
  2010-10-25 15:41                         ` Andrea Crotti
@ 2010-10-25 18:30                           ` Michael Albinus
  2010-10-26  8:14                             ` Andrea Crotti
  0 siblings, 1 reply; 30+ messages in thread
From: Michael Albinus @ 2010-10-25 18:30 UTC (permalink / raw
  To: Andrea Crotti; +Cc: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

>> Than I'm lost. You could try with make --debug, but I don't expect too
>> much information from ...
>>
>> Anybody else having this trouble with Tramp 2.2?
>>
>> Best regards, Michael.
>
> Yes me too :)
> But why there is a directory
> tramp/lisp

That is the directory containing Tramp's lisp files.

> and a directory
> tramp2?

Ignore it. These are old files; the "tramp2" approach (which was a
rewriting of Tramp) is not followed anymore.

> Also in tramp/lisp there is version 2.20-pre and in the other the CVS
> id.

I hope you are speaking about version 2.2.0-pre.

> The thing I really don't get is where the hell this "lstoll" comes from,
> it's not a user at all in my system and it's not anywhere in the
> makefiles.

I've checked the Makefile, again. I have the impression, that the
configure call did a wrong expansion of @abs_builddir@. Could you,
please, adapt the setting in Makefile (line 36) by

builddir        = /Users/andrea/Documents/pycon/tramp/lisp

Afterwards, you must call "make" again.

Best regards, Michael.



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

* Re: tramp & numberp
  2010-10-25 18:30                           ` Michael Albinus
@ 2010-10-26  8:14                             ` Andrea Crotti
  2010-10-26  8:52                               ` Michael Albinus
  0 siblings, 1 reply; 30+ messages in thread
From: Andrea Crotti @ 2010-10-26  8:14 UTC (permalink / raw
  To: help-gnu-emacs

>
> I've checked the Makefile, again. I have the impression, that the
> configure call did a wrong expansion of @abs_builddir@. Could you,
> please, adapt the setting in Makefile (line 36) by
>
> builddir        = /Users/andrea/Documents/pycon/tramp/lisp
>
> Afterwards, you must call "make" again.
>
> Best regards, Michael.

The bad news is that that variable is already correct, and nonetheless I
get the same error.

And I also tried on a linux 64 machine and it goes also wrong (another
path though).

--8<---------------cut here---------------start------------->8---
Opening output file: no such file or directory, /tmp/emacs/trunk/src/emacs-23.2/lisp/tramp-loaddefs.el
--8<---------------cut here---------------end--------------->8---

It might be here the problem

--8<---------------cut here---------------start------------->8---
tramp-loaddefs.el: $(LISP_FILES)
# XEmacs must be advised to put tramp.el definitions at the beginning.
# We redefine `autoload-trim-file-name', therefore.
	$(EM) -l autoload						    \
	  --eval "(setq generate-autoload-cookie \";;;###tramp-autoload\")" \
	  --eval "(setq generated-autoload-file \"$@\")"		    \
	  --eval "(setq make-backup-files nil)"				    \
	  --eval "(unless (string-equal \"$(EMACS_INFO)\" \"emacs\")	    \
		    (defalias 'autoload-trim-file-name			    \
			      'file-name-sans-extension))"		    \
	  -f batch-update-autoloads $(builddir)
# XEmacs uses hard coded feature `lisp-autoloads'.
	@sed -e s/lisp-autoloads/tramp-loaddefs/g $@ >$@.$$$$ &&	    \
	  mv -f $@.$$$$ $@
# Emacs 22 does not add the `provide' form to the generated loaddefs.el.
	@grep -q provide $@ || echo "(provide 'tramp-loaddefs)" >>$@
--8<---------------cut here---------------end--------------->8---

but it's really strange that only to me it's not working, I might be
doing something wrong but.

--8<---------------cut here---------------start------------->8---
cd tramp
autoconf
./configure --with-contrib
make
--8<---------------cut here---------------end--------------->8---

should not be too complicated right?




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

* Re: tramp & numberp
  2010-10-26  8:14                             ` Andrea Crotti
@ 2010-10-26  8:52                               ` Michael Albinus
  0 siblings, 0 replies; 30+ messages in thread
From: Michael Albinus @ 2010-10-26  8:52 UTC (permalink / raw
  To: Andrea Crotti; +Cc: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

> but it's really strange that only to me it's not working, I might be
> doing something wrong but.
> should not be too complicated right?
>
> cd tramp
> autoconf
> ./configure --with-contrib
> make

Could you, please, send me both files configure and lisp/Makefile?

Thanks, and best regards, Michael.



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

* Re: tramp & numberp
  2010-10-25  7:08     ` Michael Albinus
@ 2010-10-26  9:11       ` Andrea Crotti
  2010-10-26 10:47         ` Andrea Crotti
  2010-10-26 12:20         ` Michael Albinus
  0 siblings, 2 replies; 30+ messages in thread
From: Andrea Crotti @ 2010-10-26  9:11 UTC (permalink / raw
  To: help-gnu-emacs

Michael Albinus <michael.albinus@tieto.com> writes:

> Andrea Crotti <andrea.crotti.0@gmail.com> writes:
>
>> With
>> GNU Emacs 23.2.1 (x86_64-apple-darwin10.3.0, NS apple-appkit-1038.29) of
>> 2010-05-09 on linc
>> I can't even find the file tramp-sh.el...
>
> Yes, that patch I've referred to was for Tramp 2.2. For Tramp 2.1.18
> (bundled with Emacs 23.2), you might apply the following patch:
>
> *** ~/src/emacs-23/lisp/net/tramp.el.~99642~	2010-10-25 09:00:04.640285001 +0200
> --- ~/src/emacs-23/lisp/net/tramp.el	2010-10-21 08:24:16.448917001 +0200
> ***************
> *** 2816,2822 ****
>     (tramp-send-command-and-read
>      vec
>      (format
> !     "((%s %s || %s -h %s) && %s -c '((\"%%N\") %%h %s %s %%X.0 %%Y.0 %%Z.0 %%s.0 \"%%A\" t %%i.0 -1)' %s || echo nil)"
>       (tramp-get-file-exists-command vec)
>       (tramp-shell-quote-argument localname)
>       (tramp-get-test-command vec)
> --- 2816,2822 ----
>     (tramp-send-command-and-read
>      vec
>      (format
> !     "( (%s %s || %s -h %s) && %s -c '( (\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)' %s || echo nil)"
>       (tramp-get-file-exists-command vec)
>       (tramp-shell-quote-argument localname)
>       (tramp-get-test-command vec)
> ***************
> *** 3223,3229 ****
>        ;; but it does not work on all remote systems.  Therefore, we
>        ;; quote the filenames via sed.
>        "cd %s; echo \"(\"; (%s -a | sed -e s/\\$/\\\"/g -e s/^/\\\"/g | xargs "
> !      "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%X.0 %%Y.0 %%Z.0 %%s.0 \"%%A\" t %%i.0 -1)'); "
>        "echo \")\"")
>       (tramp-shell-quote-argument localname)
>       (tramp-get-ls-command vec)
> --- 3223,3229 ----
>        ;; but it does not work on all remote systems.  Therefore, we
>        ;; quote the filenames via sed.
>        "cd %s; echo \"(\"; (%s -a | sed -e s/\\$/\\\"/g -e s/^/\\\"/g | xargs "
> !      "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)'); "
>        "echo \")\"")
>       (tramp-shell-quote-argument localname)
>       (tramp-get-ls-command vec)
>
> Best regards, Michael.

And another question, how should I apply this patch in the best way?  I
mean I have the tramp.el.gz file that I can modify also from emacs but
can I do that automatically since it's also compressed?




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

* Re: tramp & numberp
  2010-10-26  9:11       ` Andrea Crotti
@ 2010-10-26 10:47         ` Andrea Crotti
  2010-10-26 12:21           ` Michael Albinus
  2010-10-26 12:26           ` Daniel Pittman
  2010-10-26 12:20         ` Michael Albinus
  1 sibling, 2 replies; 30+ messages in thread
From: Andrea Crotti @ 2010-10-26 10:47 UTC (permalink / raw
  To: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:
> And another question, how should I apply this patch in the best way?  I
> mean I have the tramp.el.gz file that I can modify also from emacs but
> can I do that automatically since it's also compressed?

As I thought, now I modified the tramp.el.gz and saved with the right
patch, everything was working but restarting emacs I have again the same
problem, so I guess it's not really the way to go...




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

* Re: tramp & numberp
  2010-10-26  9:11       ` Andrea Crotti
  2010-10-26 10:47         ` Andrea Crotti
@ 2010-10-26 12:20         ` Michael Albinus
  2010-10-26 15:27           ` Andrea Crotti
  1 sibling, 1 reply; 30+ messages in thread
From: Michael Albinus @ 2010-10-26 12:20 UTC (permalink / raw
  To: Andrea Crotti; +Cc: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

> And another question, how should I apply this patch in the best way?  I
> mean I have the tramp.el.gz file that I can modify also from emacs but
> can I do that automatically since it's also compressed?

You must decompress it first. Then you could try Tools -> Apply Patch ->
To a File.

Do not forget to byte-compile it afterwards.



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

* Re: tramp & numberp
  2010-10-26 10:47         ` Andrea Crotti
@ 2010-10-26 12:21           ` Michael Albinus
  2010-10-26 12:26           ` Daniel Pittman
  1 sibling, 0 replies; 30+ messages in thread
From: Michael Albinus @ 2010-10-26 12:21 UTC (permalink / raw
  To: Andrea Crotti; +Cc: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

> As I thought, now I modified the tramp.el.gz and saved with the right
> patch, everything was working but restarting emacs I have again the same
> problem, so I guess it's not really the way to go...

Have you byte-compiled the file?

Try "M-x locate-library RET tramp RET" in order to see which file is
used.

Best regards, Michael.



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

* Re: tramp & numberp
  2010-10-26 10:47         ` Andrea Crotti
  2010-10-26 12:21           ` Michael Albinus
@ 2010-10-26 12:26           ` Daniel Pittman
  1 sibling, 0 replies; 30+ messages in thread
From: Daniel Pittman @ 2010-10-26 12:26 UTC (permalink / raw
  To: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:
> Andrea Crotti <andrea.crotti.0@gmail.com> writes:
>
>> And another question, how should I apply this patch in the best way?
>> I mean I have the tramp.el.gz file that I can modify also from emacs but
>> can I do that automatically since it's also compressed?
>
> As I thought, now I modified the tramp.el.gz and saved with the right
> patch, everything was working but restarting emacs I have again the same
> problem, so I guess it's not really the way to go...

If you didn't recompile the file, the .elc version might well get loaded in
preference next time around, and your changes wouldn't show up...

        Daniel

That almost certainly isn't your problem, but just in case someone may as well
ask the "is it plugged in" question. :)

-- 
✣ Daniel Pittman            ✉ daniel@rimspace.net            ☎ +61 401 155 707
               ♽ made with 100 percent post-consumer electrons




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

* Re: tramp & numberp
  2010-10-26 12:20         ` Michael Albinus
@ 2010-10-26 15:27           ` Andrea Crotti
  2010-10-26 15:48             ` Michael Albinus
  2010-10-27 11:31             ` Michael Albinus
  0 siblings, 2 replies; 30+ messages in thread
From: Andrea Crotti @ 2010-10-26 15:27 UTC (permalink / raw
  To: help-gnu-emacs

Michael Albinus <michael.albinus@tieto.com> writes:
>
> You must decompress it first. Then you could try Tools -> Apply Patch ->
> To a File.
>
> Do not forget to byte-compile it afterwards.


Yes thanks now it's finally fine.

Still it would be good to use the newer version of tramp in general when
I'll be able to compile it.
Am I the only one then? (I tried today on another totally independent
linux machine and same result)...




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

* Re: tramp & numberp
  2010-10-26 15:27           ` Andrea Crotti
@ 2010-10-26 15:48             ` Michael Albinus
  2010-10-27 11:31             ` Michael Albinus
  1 sibling, 0 replies; 30+ messages in thread
From: Michael Albinus @ 2010-10-26 15:48 UTC (permalink / raw
  To: Andrea Crotti; +Cc: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

> Still it would be good to use the newer version of tramp in general when
> I'll be able to compile it.
> Am I the only one then? (I tried today on another totally independent
> linux machine and same result)...

It works for me. And there are also other users who have tried it
already.

Have you done a completely new installation on that Linux machine? No
mounted home directories or alike? I'm still curious, why on your Linux
machine your home directory did look like the one on your MacOS machine.

Best regards, Michael.



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

* Re: tramp & numberp
  2010-10-26 15:27           ` Andrea Crotti
  2010-10-26 15:48             ` Michael Albinus
@ 2010-10-27 11:31             ` Michael Albinus
  2010-10-27 12:02               ` Andrea Crotti
  1 sibling, 1 reply; 30+ messages in thread
From: Michael Albinus @ 2010-10-27 11:31 UTC (permalink / raw
  To: Andrea Crotti; +Cc: help-gnu-emacs

Andrea Crotti <andrea.crotti.0@gmail.com> writes:

> Still it would be good to use the newer version of tramp in general when
> I'll be able to compile it.

Maybe the following patch makes it better?

--8<---------------cut here---------------start------------->8---
*** /home/albinus/src/tramp/lisp/Makefile.in.~2.41~	2010-10-27 12:46:19.886501187 +0200
--- /home/albinus/src/tramp/lisp/Makefile.in	2010-10-27 12:43:35.000000000 +0200
***************
*** 90,97 ****

  all: autoloads $(addsuffix .elc, $(basename $(LISP_FILES) $(CONTRIB_FILES)))

! autoloads: tramp-loaddefs.el
! tramp-loaddefs.el: $(LISP_FILES)
  # XEmacs must be advised to put tramp.el definitions at the beginning.
  # We redefine `autoload-trim-file-name', therefore.
  	$(EM) -l autoload						    \
--- 90,97 ----

  all: autoloads $(addsuffix .elc, $(basename $(LISP_FILES) $(CONTRIB_FILES)))

! autoloads: $(builddir)/tramp-loaddefs.el
! $(builddir)/tramp-loaddefs.el: $(LISP_FILES)
  # XEmacs must be advised to put tramp.el definitions at the beginning.
  # We redefine `autoload-trim-file-name', therefore.
  	$(EM) -l autoload						    \
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.



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

* Re: tramp & numberp
  2010-10-27 11:31             ` Michael Albinus
@ 2010-10-27 12:02               ` Andrea Crotti
  0 siblings, 0 replies; 30+ messages in thread
From: Andrea Crotti @ 2010-10-27 12:02 UTC (permalink / raw
  To: help-gnu-emacs

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

> Maybe the following patch makes it better?
>
> *** /home/albinus/src/tramp/lisp/Makefile.in.~2.41~	2010-10-27 12:46:19.886501187 +0200
> --- /home/albinus/src/tramp/lisp/Makefile.in	2010-10-27 12:43:35.000000000 +0200
> ***************
> *** 90,97 ****
>
>   all: autoloads $(addsuffix .elc, $(basename $(LISP_FILES) $(CONTRIB_FILES)))
>
> ! autoloads: tramp-loaddefs.el
> ! tramp-loaddefs.el: $(LISP_FILES)
>   # XEmacs must be advised to put tramp.el definitions at the beginning.
>   # We redefine `autoload-trim-file-name', therefore.
>   	$(EM) -l autoload						    \
> --- 90,97 ----
>
>   all: autoloads $(addsuffix .elc, $(basename $(LISP_FILES) $(CONTRIB_FILES)))
>
> ! autoloads: $(builddir)/tramp-loaddefs.el
> ! $(builddir)/tramp-loaddefs.el: $(LISP_FILES)
>   # XEmacs must be advised to put tramp.el definitions at the beginning.
>   # We redefine `autoload-trim-file-name', therefore.
>   	$(EM) -l autoload						    \
>
> Best regards, Michael.

I also write it here, yes this works :)
Thanks a lot




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

end of thread, other threads:[~2010-10-27 12:02 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-24 14:07 tramp & numberp Andrea Crotti
2010-10-24 14:12 ` Andrea Crotti
2010-10-24 15:59 ` Michael Albinus
2010-10-24 16:06   ` Andrea Crotti
2010-10-24 16:09   ` Andrea Crotti
2010-10-25  7:08     ` Michael Albinus
2010-10-26  9:11       ` Andrea Crotti
2010-10-26 10:47         ` Andrea Crotti
2010-10-26 12:21           ` Michael Albinus
2010-10-26 12:26           ` Daniel Pittman
2010-10-26 12:20         ` Michael Albinus
2010-10-26 15:27           ` Andrea Crotti
2010-10-26 15:48             ` Michael Albinus
2010-10-27 11:31             ` Michael Albinus
2010-10-27 12:02               ` Andrea Crotti
2010-10-25  7:12     ` Andrea Crotti
2010-10-25  9:36       ` Michael Albinus
2010-10-25 11:16         ` Andrea Crotti
2010-10-25 11:51           ` Michael Albinus
2010-10-25 12:26             ` Andrea Crotti
2010-10-25 12:40               ` Michael Albinus
2010-10-25 12:45                 ` Andrea Crotti
2010-10-25 13:54                   ` Michael Albinus
2010-10-25 15:01                     ` Andrea Crotti
2010-10-25 15:33                       ` Michael Albinus
2010-10-25 15:41                         ` Andrea Crotti
2010-10-25 18:30                           ` Michael Albinus
2010-10-26  8:14                             ` Andrea Crotti
2010-10-26  8:52                               ` Michael Albinus
2010-10-25 12:48                 ` Andrea Crotti

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.