Re: PB with auctex-11.54 (debian testing) *THE END*

[email protected] (Frank Küster)
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
Daniel Flipo <[email protected]> wrote:

> 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?

That's the usual setup in Debian: The load path always contains
/usr/local/share/emacs/site-lisp and
/usr/local/share/<emacs-flavor>/site-lisp. This enables the local
administrator to install newer versions than provided by Debian. By the
way, the tetex packages do the same: TEXMFLOCAL is searched before
TEXMFMAIN (and TEXMFVAR).

> « 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?

Yes, this should put the "<emacs-flavor>" directories (where the
byte-compiled files are) before the plain "emacs" directories. I guess
it could be shortened to 

    (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/"))

because auctex depends on emacsen-common which defines this
function. Oh, it does _not_ depend directly on it, but that's a
different bug. At least emacs21 depends on it, and auctex depends on
emacs21, so that the function will be known every time 50auctex.el is
loaded. 

Davide?

Regards, Frank
-- 
Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.