Le 17/09/2016 à 18:03, Mosè Giordano a écrit :
> Hi Tassilo and Jean-Francois,
> 
> 2016-09-16 17:40 GMT+02:00 Tassilo Horn <t...@gnu.org>:
>> Please check your system's `site-run-file'.  That's probably
>> /usr/share/emacs/site-lisp/site-start.el.  I presume there's some code
>> in it which forcefully loads the site-lisp AUCTeX version.  There could
>> also be "a default init file" /usr/share/emacs/site-lisp/default.el
>> doing something such.
> 
> In Debian there is an empty /etc/emacs/site-start.el file, but the
> directory /etc/emacs/site-start.d has some configuration files.  If a
> user installs the "auctex" package, there will be a "50auctex.el" file
> in that directory.  This file starts with the following comment:
> 
>     ;;; This is a conffile: you can edit it if you like
> 
> Thus, users can either customize it in order to load this version of
> the package only if there isn't an ELPA package for AUCTeX, or
> completely comment the file.
> 
> Hope this helps,
> Mosè
>

Hi Mosè

I confirm the existence of the 50auctex.el file
in /etc/emacs/site-start.d

here are its contents

;;; This is a conffile: you can edit it if you like; however,
;;; please note that if you do not want AUCTeX to override the standard
;;; Emacs TeX mode, you may unload AUCTeX completely by evaluating the
;;; form "(unload-feature 'tex-site)" (i.e., put that string into your
;;; "~/.emacs" to disable AUCTeX completely).

(if (member debian-emacs-flavor '(emacs23 emacs24 emacs-snapshot))
    (if (file-exists-p "/usr/share/emacs/site-lisp/auctex/tex.el")
        (progn
          (let ((list '((lisp . "auctex") (source . "auctex"))))
            (while list
              (let ((elt (car list)))
                (cond
                 ((equal 'lisp (car elt))
                  (let ((dir (concat "/usr/share/"
                                     (symbol-name debian-emacs-flavor)
                                     "/site-lisp/" (cdr elt))))
                    (when (file-directory-p dir)
                      (if (fboundp 'debian-pkg-add-load-path-item)
                          (debian-pkg-add-load-path-item dir)
                        (add-to-list 'load-path dir 'append)))))
                 ((equal 'source (car elt))
                  (let ((dir (concat "/usr/share/emacs/site-lisp/"
                                     (cdr elt))))
                    (when (file-directory-p dir)
                      (add-to-list 'load-path dir 'append))))))
              (setq list (cdr list))))
          (load "auctex.el")
          (load "preview-latex.el"))
      (message "auctex: Package removed but not purged; skipping setup")))

this is all on $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial

Thanks for the help (doing (unload-feature 'tex-site) in my .emacs before
(package-initialize) solved my problem)

(for the record I have no special privileges on this system)

Jean-Francois 



_______________________________________________
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to