Emacs Dired Recursive Load Error 2011-05-26

By Xah Lee. Date: . Last updated: .

Bug. This is emacs 23.2.1 on Ubuntu Linux 11.04, running ErgoEmacs. On .

Once you loaded ErgoEmacs, everytime you try to open a file or directory, you get a “Recursive load” error:

expand-file-name: Recursive load: "/usr/share/emacs/23.2/lisp/net/tramp.elc", "/usr/share/emacs/23.2/lisp/shell.elc", "/usr/share/emacs/23.2/lisp/net/tramp.elc", "/usr/share/emacs/23.2/lisp/shell.elc", "/usr/share/emacs/23.2/lisp/net/tramp.elc", "/usr/share/emacs/23.2/lisp/shell.elc", "/usr/share/emacs/23.2/lisp/net/tramp.elc", "/usr/share/emacs/23.2/lisp/shell.elc", "/usr/share/emacs/23.2/lisp/net/tramp.elc"

(Tramp is a package integrated with GNU emacs. It lets you work with files in remote servers.)

I couldn't think of where that error came from. Plain GNU Emacs doesn't have that error, only when ErgoEmacs is loaded. However, ErgoEmacs doesn't redefine find-file in any way. A Google search turns up a post in GNU emacs mailing list. See: The old tramp recursive load By FredCroot. At http://lists.gnu.org/archive/html/help-gnu-emacs/2011-05/msg00064.html

There seems to be some change in tramp. The solution suggested is just to load tramp in your init file, and that solved the problem for me. Like this:

(require 'tramp)

Back to Emacs Misc Bugs.

ErgoEmacs mascot-s276x226
Buy Xah Emacs Tutorial