[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2.1.10 - tramp-set-remote-path: Symbol's function definition is void
From: |
Michael Albinus |
Subject: |
Re: 2.1.10 - tramp-set-remote-path: Symbol's function definition is void: copy-tree |
Date: |
Tue, 14 Aug 2007 12:01:42 +0200 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) |
"mike kuhlen" <address@hidden> writes:
> Hi
Hi,
> In tramp v.2.1.10 I get the following error when I try and open a remote
> file over ssh:
>
> tramp-set-remote-path: Symbol's function definition is void: copy-tree
>
> Comparing version 2.1.9 of tramp.el with 2.1.10 I noticed that 2.1.9 has a
> "(require 'cl)" that 2.1.10 doesn't have. When I add this statement to
> 2.1.10 and recompile, everything works fine.
Oops, `copy-tree' has moved to subr.el in Emacs 22. Therefore, cl.el
must still be required in Emacs 21.4.
You could apply the following patch:
*** /tmp/tramp.el Tue Aug 14 11:56:04 2007
--- /tmp/tramp.el16730Ntp Tue Aug 14 11:56:04 2007
--- 85,98 ----
(load "password" 'noerror)
(require 'password nil 'noerror)) ;from No Gnus, also in tar ball
(require 'shell)
(require 'advice)
+ ;; `copy-tree' is part of subr.el since Emacs 22.
+ (eval-when-compile
+ (unless (functionp 'copy-tree)
+ (require 'cl)))
+
;; Requiring 'tramp-cache results in an endless loop.
(autoload 'tramp-get-file-property "tramp-cache")
(autoload 'tramp-set-file-property "tramp-cache")
> Cheers, Michael
Best regards, Michael.