auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] Changes to auctex/tex.el,v


From: Ralf Angeli
Subject: [AUCTeX-diffs] Changes to auctex/tex.el,v
Date: Sun, 21 Dec 2008 14:37:29 +0000

CVSROOT:        /cvsroot/auctex
Module name:    auctex
Changes by:     Ralf Angeli <angeli>    08/12/21 14:37:29

Index: tex.el
===================================================================
RCS file: /cvsroot/auctex/auctex/tex.el,v
retrieving revision 5.642
retrieving revision 5.643
diff -u -b -r5.642 -r5.643
--- tex.el      16 Dec 2008 22:30:28 -0000      5.642
+++ tex.el      21 Dec 2008 14:37:28 -0000      5.643
@@ -1798,11 +1798,12 @@
   :group 'TeX-file
   :type '(repeat (file :format "%v")))
 
-(defcustom TeX-auto-private (mapcar (lambda (entry)
-                                     (expand-file-name TeX-auto-local entry))
-                                   TeX-macro-private)
-  "List of directories containing automatically generated information.
-Must end with a slash.
+(defcustom TeX-auto-private
+  (list (expand-file-name TeX-auto-local
+                         (or (and (boundp 'user-emacs-directory)
+                                  (concat user-emacs-directory "auctex/"))
+                             "~/.emacs.d/auctex/")))
+  "List of directories containing automatically generated AUCTeX style files.
 
 These correspond to the personal TeX macros."
   :group 'TeX-file
@@ -1811,11 +1812,12 @@
 (if (stringp TeX-auto-private)         ;Backward compatibility
     (setq TeX-auto-private (list TeX-auto-private)))
 
-(defcustom TeX-style-private (mapcar (lambda (entry)
-                                      (expand-file-name
-                                       TeX-style-local entry))
-                                    TeX-macro-private)
-  "List of directories containing hand generated information.
+(defcustom TeX-style-private
+  (list (expand-file-name TeX-style-local
+                         (or (and (boundp 'user-emacs-directory)
+                                  (concat user-emacs-directory "auctex/"))
+                             "~/.emacs.d/auctex/")))
+  "List of directories containing hand-generated AUCTeX style files.
 
 These correspond to the personal TeX macros."
   :group 'TeX-file
@@ -1826,12 +1828,17 @@
 
 (defcustom TeX-style-path
   (let ((path))
-    (mapcar (lambda (file) (if file (setq path (cons file path))))
+    ;; Put directories in an order where the more local files can
+    ;; override the more global ones.
+    (mapcar (lambda (file) (when file (add-to-list 'path file t)))
            (append (list TeX-auto-global TeX-style-global)
                    TeX-auto-private TeX-style-private
                    (list TeX-auto-local TeX-style-local)))
     path)
-  "List of directories to search for AUCTeX style files."
+  "List of directories to search for AUCTeX style files.
+Per default the list is built from the values of the variables
+`TeX-auto-global', `TeX-style-global', `TeX-auto-private',
+`TeX-style-private', `TeX-auto-local', and `TeX-style-local'."
   :group 'TeX-file
   :type '(repeat (file :format "%v")))
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]