Ralf Angeli writes:
� > flipo% emacs --debug-init .&
� >
� > Then I get a *Backtrace* buffer* which I append here.
�
� | Debugger entered--Lisp error: (error "Variable binding depth exceeds max-specpdl-size")
� | custom-add-to-group(TeX-file TeX-lisp-directory custom-variable)
� | custom-handle-keyword(TeX-lisp-directory :group TeX-file custom-variable)
� | custom-declare-variable(TeX-lisp-directory (concat "/usr/share/" (symbol-name debian-emacs-flavor) "/site-lisp/auctex/") ("/usr/local/share/emacs/site-lisp/tex-site.elc" . 625) :group TeX-file :type directory)
� | require(tex-site)
� | eval-buffer(#<buffer *load*<22>> nil "tex" nil t)
� | load-with-code-conversion("/usr/share/emacs/site-lisp/auctex/tex.el" "tex" nil t)
� | load("tex" nil t)
� | require(tex-site)
� [...]
� | eval-buffer(#<buffer *load*<2>> nil "tex" nil t)
� | load-with-code-conversion("/usr/share/emacs/site-lisp/auctex/tex.el" "tex" nil t)
� | load("tex" nil t)
� | require(tex-site)
� | eval-buffer(#<buffer *load*> nil "~/.emacs" nil t)
� | load-with-code-conversion("/home/flipo/.emacs" "~/.emacs" t t)
� | load("~/.emacs" t t)
�
� Something is rotten in the state of Denmark.
My system is rotten, I guess :-(
� Why does tex-site.el try to load tex.el? Do you have a non-standard
� tex-site.el? Maybe you could send the file for inspection. Please
� locate it through Emacs by typing `M-x locate-libary RET tex-site
� RET'.
M-x locate-libary RET tex-site RET says
/usr/local/share/emacs/site-lisp/tex-site.elc
!!!
I just can't figure out how emacs has found this one.
I do have a directory /usr/local/share/emacs/site-lisp/
with local .el(c) files.
Normally, I load my local file site-start.el file:
/usr/local/share/emacs/site-lisp/site-start.el(c)
by adding the line
(load "/usr/local/share/emacs/site-lisp/site-start")
to the standard /etc/emacs/site-start.el file (empty normally).
Then the local site-start.el loads my local tex-site.el(c).
But, before reporting my problem, I took care to move
out of the way the loading of my local file site-start.el file.
I thought it would hide all my local files for the test, but
it does not, as the *Backtrace* shows...
Emacs still finds the directory
/usr/local/share/emacs/site-lisp/
and the tex-site.el(c) files inside...
How is this possible?
Now, I have tar-gziped my /usr/local/share/emacs directory, Then
I removed and re-installed auctex from scratch.
It does work properly! of course my customizations are lost :-(
Sorry to have wasted your precious time with my local mess.
I am looking forward to David's talks at EuroTeX in March,
I hope I'll be able to learn the proper way of customizing auctex ;-)
� In addition I don't understand why it tries to load tex.el and not
� tex.elc. The result of `list-load-path-shadows' already showed that
� /usr/share/emacs/site-lisp/auctex/... (which holds the source files)
� shadows /usr/share/emacs21/site-lisp/auctex/... (which holds the
� compiled files). I guess it should be the other way round.
The file 50auctex.el installed by Debian says:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; This file is automatically generated.
(if (fboundp 'debian-pkg-add-load-path-item)
(progn (debian-pkg-add-load-path-item "/usr/share/emacs21/site-lisp/auctex/")
(debian-pkg-add-load-path-item "/usr/share/emacs/site-lisp/auctex/"))
(progn (add-to-list 'load-path "/usr/share/emacs21/site-lisp/auctex/" 'append)
(add-to-list 'load-path "/usr/share/emacs/site-lisp/auctex/" 'append)))
(require 'tex-site)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Is this correct?
Daniel Flipo.