[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] elpa installed auctex is not the one used
From: |
jfbu |
Subject: |
Re: [AUCTeX] elpa installed auctex is not the one used |
Date: |
Mon, 19 Sep 2016 14:14:48 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Le 16/09/2016 à 17:40, Tassilo Horn a écrit :
> jfbu <address@hidden> writes:
>
> Hi Jean-Francois,
>
>> and the load-path is
>> load-path is a variable defined in `C source code'.
>> Its value is
>> ("/home/userX/.emacs.d/elpa/auctex-11.89.5/" "/home/userX/.emacsaddons"
>> "/usr/share/emacs24/site-lisp/latex-cjk-thai" [...]
> Hm, in the load-path, the ELPA version is before the site-lisp version,
> so in theory it should win...
>
>> is there some other path variable to customize in order for locally
>> elpa installed AucTeX to be the one picked up ?
>
> Please check your system's `site-run-file'.
> That's probably
> /usr/share/emacs/site-lisp/site-start.el.
site-run-file is a variable defined in `startup.el'.
Its value is "site-start"
the repertory is /usr/share/emacs/24.5/lisp/
but I now I have found
/usr/share/emacs/site-lisp/
which does not contain a site-start.el
but
/usr/share/emacs/site-lisp:
total used in directory 280 available 1307640
drwxr-xr-x 7 root root 4096 août 30 13:26 .
drwxr-xr-x 5 root root 4096 août 8 12:39 ..
-rw-r--r-- 1 root root 268 févr. 3 2016 asy-init.el
-rw-r--r-- 1 root root 17004 févr. 6 2016 asy-keywords.el
-rw-r--r-- 1 root root 71223 févr. 3 2016 asy-mode.el
drwxr-xr-x 4 root root 4096 août 8 13:12 auctex
-rw-r--r-- 1 root root 324 nov. 19 2015 auctex.el
drwxr-xr-x 2 root root 4096 août 8 12:39 autoconf
-rw-r--r-- 1 root root 5625 mai 21 2014 debian-startup.el
-rw-r--r-- 1 root root 7814 août 27 2012 desktop-entry-mode.el
drwxr-xr-x 2 root root 4096 juil. 19 22:46 dictionaries-common
drwxr-xr-x 2 root root 4096 août 8 13:12 latex-cjk-common
drwxr-xr-x 2 root root 4096 août 8 13:12 latex-cjk-thai
-rw-r--r-- 1 root root 11133 mai 15 2013 ltx-help.el
-rw-r--r-- 1 root root 22974 août 17 02:31 M2.el
-rw-r--r-- 1 root root 7825 août 17 02:31 M2-emacs-hlp.txt
-rw-r--r-- 1 root root 1832 août 17 02:31 M2-emacs.m2
-rw-r--r-- 1 root root 595 août 17 02:31 M2-init.el
-rw-r--r-- 1 root root 95 août 17 02:31 M2-mode.el
-rw-r--r-- 1 root root 366 août 17 02:31 M2-README
-rw-r--r-- 1 root root 41844 août 17 02:31 M2-symbols.el
-rw-r--r-- 1 root root 1513 nov. 19 2015 preview-latex.el
-rw-r--r-- 1 root root 14488 nov. 19 2015 tex-site.el
hence we find an auctex in there (I recall from many years ago
that this has been for a long time in AUCTeX installs, before
I switched to ELPA)
;;; auctex.el
;;
;; This can be used for starting up AUCTeX. The following somewhat
;; strange trick causes tex-site.el to be loaded in a way that can be
;; safely undone using (unload-feature 'tex-site).
;;
(autoload 'TeX-load-hack
(expand-file-name "tex-site.el" (file-name-directory load-file-name)))
(TeX-load-hack)
I tried thus modifying my .emacs so
(cond ((>= emacs-major-version 24)
(setq custom-file "/home/userX/.emacs.d/custom.el")
(setq load-path (cons "/home/userX/.emacsaddons" load-path))
(unload-feature 'tex-site);;; DON'T USE ANTEQUATED SYSTEM AUCTEX
(load-file "/home/burnol/.emacs.d/init.el")
(package-initialize)
)
)
and it works !
(I am on very tight schedule, I just initialized a bug-report from
a tex buffer and I get a window To: address@hidden Subject: 11.89.5;
from which I deduced the problem is solved)
thanks for the help
Jean-François