[OS X Emacs] Re: Updating tramp to version 2.1.10 in Aquamacs (or, 2.1.11-problem with tramp-gw)

Kevin Brubeck Unhammer kun041 at student.uib.no
Sat Nov 17 17:51:22 EST 2007


Richard Morse <REMORSE at PARTNERS.ORG> writes:
> Hi!  In order to make use of the 'tramp-default-user-alist, I need to
> upgrade the included version of tramp  from 2.0.55 to 2.1.10 in
> Aquamacs.  I'm running into a few problems...
>
...
> * `make install` puts files in $PREFIX/share/emacs/site-lisp.  I moved
> the site-lisp folder up to the top level of "Application
> Support/Aquamacs Emacs", but even after running `(require 'tramp)` in a
> scratch buffer, the version of tramp was reported as 2.0.55.

Did you ever resolve this issue? I tried installing tramp 2.1.11 for
use with Aquamacs, and had a similar problem with Aquamacs not seeing
that there was a new version of tramp in "/Library/Application\
Support/Aquamacs\ Emacs/". So I compiled with "./configure
--with-contrib --with-lispdir=$HOME/.elisp/tramp", adding that
directory to my load-path and doing (require 'tramp) in .emacs, but
then on startup I got the following:

Debugger entered--Lisp error: (file-error "Cannot open load file" "tramp-gw")
  require(tramp-gw)
  (progn (require (quote tramp-gw)) (add-hook (quote tramp-unload-hook) (quote
 ...)))
  (if (functionp (quote make-network-process)) (progn (require ...) (add-hook
 ... ...)))
  (when (functionp (quote make-network-process)) (require (quote tramp-
gw)) (add-hook (quote tramp-unload-hook) (quote ...)))
  (progn (let (...) (require feature) (add-hook ... ...)) (unless (memq system-
type ...) (require ...) (add-hook ... ...)) (require (quote tramp-fish)) (add-
hook (quote tramp-unload-hook) (quote ...)) (when (functionp ...) (require
 ...) (add-hook ... ...)))
  eval((progn (let (...) (require feature) (add-hook ... ...)) (unless (memq 
system-type ...) (require ...) (add-hook ... ...)) (require (quote tramp-
fish)) (add-hook (quote tramp-unload-hook) (quote ...)) (when (functionp
 ...) (require ...) (add-hook ... ...))))
  do-after-load-evaluation("/Users/kiwibird/.elisp/tramp/tramp.elc")
  require(tramp)
  eval-buffer(#<buffer  *load*> nil "/Users/kiwibird/.emacs" nil t)  ; Reading 
at buffer position 26099
  load-with-code-conversion("/Users/kiwibird/.emacs" "/Users/kiwibird/.emacs" t 
t)
  load("~/.emacs" t t)
  #[nil "Â
¾
[init-file-user system-type user-init-file-1 user-init-file otherfile source ms-
dos "~" "/_emacs" windows-nt directory-files nil 
"^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$" "~/_emacs" vax-
vms "sys$login:.emacs" "/.emacs" t load expand-file-name "init" file-name-as-
directory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".el" 
file-exists-p file-newer-than-file-p message "Warning: %s is newer than %s" sit-
for 1 "default" alt inhibit-default-init inhibit-startup-message] 7]()
  command-line()
  normal-top-level()
  
It reported the right tramp-version though, but on "M-x tramp" I got this:

Loading tramp...
byte-code: Recursive load: "/Users/kiwibird/.elisp/tramp/tramp.elc", "/Users/
kiwibird/.elisp/tramp/tramp-ftp.elc", "/Users/kiwibird/.elisp/tramp/tramp.elc", 
"/Users/kiwibird/.elisp/tramp/tramp-ftp.elc", "/Users/kiwibird/.elisp/tramp/
tramp.elc", "/Users/kiwibird/.elisp/tramp/tramp-ftp.elc", "/Users/
kiwibird/.elisp/tramp/tramp.elc", "/Users/kiwibird/.elisp/tramp/tramp-ftp.elc", 
"/Users/kiwibird/.elisp/tramp/tramp.elc"

So I just copied the file tramp-gw.el to "~/.elisp/tramp/", this seems
to have resolved the issue for me -- but I have no idea why tramp
shouldn't have included that file in the first place, and why it had
to be in its own special directory instead of one of the Aquamacs
defaults (well, at least I won't have to type those long-winding
path-names). My Ubuntu laptop had no such problems with tramp 2.1.11.

--
Kevin Brubeck Unhammer







More information about the MacOSX-Emacs mailing list