unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* New Tramp version fails with ssh.
@ 2004-05-30 18:37 Luc Teirlinck
  2004-05-30 19:59 ` Luc Teirlinck
  2004-05-30 21:28 ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: Luc Teirlinck @ 2004-05-30 18:37 UTC (permalink / raw)
  Cc: emacs-devel

I do C-x C-f on a file using the "/ssh:..." type syntax.
Local machine GNU/Linux, remote machine Solaris2.8.
Result (from *Messages*):

tramp: Finding a suitable `ls' command
tramp: Checking remote `/bin/ls' command for `-n' option
tramp: Testing remote command `/bin/ls' for -n...okay
tramp-check-ls-commands: Invalid function: (macro . #[(variable value
&rest body) "

Then follows some byte code which apparently calls describe-function,
because that is what happens if I try to yank.  Then:

[variable body value if get (quote byte-obsolete-variable) quote progn
let] 6 ("/usr/local/share/emacs/21.3.50/lisp/net/tramp.elc"
. 226654)])

I have a Tramp debug buffer, but it does not seem to contain any more
information.  It ends with:

# Finding a suitable `ls' command
# Checking remote `/bin/ls' command for `-n' option
$ test -x /bin/ls 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Testing remote command `/bin/ls' for -n...
$ /bin/ls -lnd / >/dev/null 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Testing remote command `/bin/ls' for -n...okay

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

* Re: New Tramp version fails with ssh.
  2004-05-30 18:37 New Tramp version fails with ssh Luc Teirlinck
@ 2004-05-30 19:59 ` Luc Teirlinck
  2004-05-30 20:25   ` Andreas Schwab
  2004-05-30 21:28 ` Stefan Monnier
  1 sibling, 1 reply; 7+ messages in thread
From: Luc Teirlinck @ 2004-05-30 19:59 UTC (permalink / raw)
  Cc: kai, emacs-devel

Here is a backtrace:

Debugger entered--Lisp error: (invalid-function (macro . #[(variable
value &rest body) ".. byte-code... [variable body value if get (quote byte-obsolete-variable) quote progn let] 6 ("/usr/local/share/emacs/21.3.50/lisp/net/tramp.elc" . 226654)]))
  tramp-let-maybe(47 47 nil "/bin/ls")
  tramp-check-ls-commands(nil "ssh" nil "raven.dms.auburn.edu" "ls" ("/bin" "/usr/bin" "/usr/sbin" "/usr/local/bin" "/usr/ccs/bin" "/local/bin" "/local/freeware/bin" "/local/gnu/bin" "/usr/freeware/bin" "/usr/pkg/bin" "/usr/contrib/bin"))
  tramp-find-ls-command(nil "ssh" nil "raven.dms.auburn.edu")
  tramp-post-connection(nil "ssh" nil "raven.dms.auburn.edu")
  tramp-open-connection-rsh(nil "ssh" nil "raven.dms.auburn.edu")
  tramp-maybe-open-connection(nil "ssh" nil "raven.dms.auburn.edu")
  tramp-send-command(nil "ssh" nil "raven.dms.auburn.edu" "cd ~; pwd" t)
  tramp-handle-expand-file-name("/ssh:raven.dms.auburn.edu:sequences.texi" nil)
  apply(tramp-handle-expand-file-name ("/ssh:raven.dms.auburn.edu:sequences.texi" nil))
  tramp-sh-file-name-handler(expand-file-name "/ssh:raven.dms.auburn.edu:sequences.texi" nil)
  apply(tramp-sh-file-name-handler expand-file-name ("/ssh:raven.dms.auburn.edu:sequences.texi" nil))
  tramp-file-name-handler(expand-file-name "/ssh:raven.dms.auburn.edu:sequences.texi" nil)
  expand-file-name("/ssh:raven.dms.auburn.edu:sequences.texi" nil)
  apply(expand-file-name ("/ssh:raven.dms.auburn.edu:sequences.texi" nil))
  tramp-completion-run-real-handler(expand-file-name ("/ssh:raven.dms.auburn.edu:sequences.texi" nil))
  tramp-completion-handle-expand-file-name("/ssh:raven.dms.auburn.edu:sequences.texi" nil)
  apply(tramp-completion-handle-expand-file-name ("/ssh:raven.dms.auburn.edu:sequences.texi" nil))
  tramp-completion-file-name-handler(expand-file-name "/ssh:raven.dms.auburn.edu:sequences.texi" nil)
  expand-file-name("/ssh:raven.dms.auburn.edu:sequences.texi")
  find-file-noselect("/ssh:raven.dms.auburn.edu:sequences.texi" nil nil t)
  find-file("/ssh:raven.dms.auburn.edu:sequences.texi" t)
  call-interactively(find-file)

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

* Re: New Tramp version fails with ssh.
  2004-05-30 19:59 ` Luc Teirlinck
@ 2004-05-30 20:25   ` Andreas Schwab
  2004-05-30 20:46     ` Kai Grossjohann
  0 siblings, 1 reply; 7+ messages in thread
From: Andreas Schwab @ 2004-05-30 20:25 UTC (permalink / raw)
  Cc: tramp-devel, kai, emacs-devel

Luc Teirlinck <teirllm@dms.auburn.edu> writes:

> Here is a backtrace:
>
> Debugger entered--Lisp error: (invalid-function (macro . #[(variable
> value &rest body) ".. byte-code... [variable body value if get (quote byte-obsolete-variable) quote progn let] 6 ("/usr/local/share/emacs/21.3.50/lisp/net/tramp.elc" . 226654)]))
>   tramp-let-maybe(47 47 nil "/bin/ls")

Here is a patch:

--- tramp.el.~1.44.~	2004-05-30 22:19:07.000000000 +0200
+++ tramp.el	2004-05-30 22:21:11.204987203 +0200
@@ -1885,6 +1885,16 @@ If VAR is nil, then we bind `v' to the s
 ;; To be activated for debugging containing this macro
 (def-edebug-spec with-parsed-tramp-file-name t)
 
+(defmacro tramp-let-maybe (variable value &rest body)
+  "Let-bind VARIABLE to VALUE in BODY, but only if VARIABLE is not obsolete.
+BODY is executed whether or not the variable is obsolete.
+The intent is to protect against `obsolete variable' warnings."
+  `(if (get 'byte-obsolete-variable ',variable)
+       (progn ,@body)
+     (let ((,variable ,value))
+       ,@body)))
+(put 'tramp-let-maybe 'lisp-indent-function 2)
+
 ;;; Config Manipulation Functions:
 
 (defun tramp-set-completion-function (method function-list)
@@ -6790,16 +6800,6 @@ exiting if process is running."
     (funcall (symbol-function 'process-kill-without-query)
 	     process flag)))
 
-(defmacro tramp-let-maybe (variable value &rest body)
-  "Let-bind VARIABLE to VALUE in BODY, but only if VARIABLE is not obsolete.
-BODY is executed whether or not the variable is obsolete.
-The intent is to protect against `obsolete variable' warnings."
-  `(if (get 'byte-obsolete-variable ',variable)
-       (progn ,@body)
-     (let ((,variable ,value))
-       ,@body)))
-(put 'tramp-let-maybe 'lisp-indent-function 2)
-
 
 ;; ------------------------------------------------------------ 
 ;; -- Kludges section -- 

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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

* Re: New Tramp version fails with ssh.
  2004-05-30 20:25   ` Andreas Schwab
@ 2004-05-30 20:46     ` Kai Grossjohann
  0 siblings, 0 replies; 7+ messages in thread
From: Kai Grossjohann @ 2004-05-30 20:46 UTC (permalink / raw)
  Cc: tramp-devel

Andreas Schwab <schwab@suse.de> writes:

> Luc Teirlinck <teirllm@dms.auburn.edu> writes:
>
>> Here is a backtrace:
>>
>> Debugger entered--Lisp error: (invalid-function (macro . #[(variable
>> value &rest body) ".. byte-code... [variable body value if get (quote byte-obsolete-variable) quote progn let] 6 ("/usr/local/share/emacs/21.3.50/lisp/net/tramp.elc" . 226654)]))
>>   tramp-let-maybe(47 47 nil "/bin/ls")
>
> Here is a patch:

Thanks, Andreas.  Committed.

Kai

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

* Re: New Tramp version fails with ssh.
  2004-05-30 18:37 New Tramp version fails with ssh Luc Teirlinck
  2004-05-30 19:59 ` Luc Teirlinck
@ 2004-05-30 21:28 ` Stefan Monnier
  2004-05-30 21:34   ` Luc Teirlinck
  1 sibling, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2004-05-30 21:28 UTC (permalink / raw)
  Cc: Kai Grossjohann, emacs-devel

> tramp-check-ls-commands: Invalid function: (macro . #[(variable value
> &rest body) "

This is the very clear evidence of a miscompiled file.
Either because the file has some missing `require' calls or because
of missing dependencies in lisp/Makefile.in.  If the latter we can't fix it
(at least I don't know how to) but a bootstrap will work around the
missing dependency.


        Stefan

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

* Re: New Tramp version fails with ssh.
  2004-05-30 21:28 ` Stefan Monnier
@ 2004-05-30 21:34   ` Luc Teirlinck
  2004-05-30 21:59     ` Stefan Monnier
  0 siblings, 1 reply; 7+ messages in thread
From: Luc Teirlinck @ 2004-05-30 21:34 UTC (permalink / raw)
  Cc: kai, emacs-devel

Stefan Monnier wrote:

   > tramp-check-ls-commands: Invalid function: (macro . #[(variable value
   > &rest body) "

   This is the very clear evidence of a miscompiled file.
   Either because the file has some missing `require' calls or because
   of missing dependencies in lisp/Makefile.in.  If the latter we can't fix it
   (at least I don't know how to) but a bootstrap will work around the
   missing dependency.

Actually running `make maintainer-clean', `./configure' and `make
bootstrap' was the very first thing I tried after getting the error.
It did not help.  However, I checked that Andreas' patch (now
committed), solves the problem.

Sincerely,

Luc.

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

* Re: New Tramp version fails with ssh.
  2004-05-30 21:34   ` Luc Teirlinck
@ 2004-05-30 21:59     ` Stefan Monnier
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2004-05-30 21:59 UTC (permalink / raw)
  Cc: kai, emacs-devel

>> tramp-check-ls-commands: Invalid function: (macro . #[(variable value
>> &rest body) "

>    This is the very clear evidence of a miscompiled file.

So much for the "very clear evidence".


        Stefan

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

end of thread, other threads:[~2004-05-30 21:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-30 18:37 New Tramp version fails with ssh Luc Teirlinck
2004-05-30 19:59 ` Luc Teirlinck
2004-05-30 20:25   ` Andreas Schwab
2004-05-30 20:46     ` Kai Grossjohann
2004-05-30 21:28 ` Stefan Monnier
2004-05-30 21:34   ` Luc Teirlinck
2004-05-30 21:59     ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

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

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