auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 61ed48c3f47d3ac13e87d


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 61ed48c3f47d3ac13e87df14c05fba0b6b6d629d
Date: Sun, 08 Mar 2015 19:51:56 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  61ed48c3f47d3ac13e87df14c05fba0b6b6d629d (commit)
      from  d23de0a5646ee52d8e533e4b7cb74347eaac8ddd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 61ed48c3f47d3ac13e87df14c05fba0b6b6d629d
Author: Tassilo Horn <address@hidden>
Date:   Sun Mar 8 20:51:36 2015 +0100

    Replace add-to-list with pushnew
    
    * tex.el (TeX-style-path): Replace add-to-list on local with
    pushnew.

diff --git a/ChangeLog b/ChangeLog
index d1cc658..52f31c2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-03-08  Tassilo Horn  <address@hidden>
 
+       * tex.el (TeX-style-path): Replace add-to-list on local with
+       pushnew.
+
        * style/bidibeamer.el: New style.
 
        * Makefile.in (STYLESRC): Activate new bidibeamer style.
diff --git a/tex.el b/tex.el
index 5c81994..609a1e4 100644
--- a/tex.el
+++ b/tex.el
@@ -2440,11 +2440,11 @@ These correspond to the personal TeX macros."
   (let ((path))
     ;; Put directories in an order where the more local files can
     ;; override the more global ones.
-    (mapc (lambda (file) (when file (add-to-list 'path file t)))
+    (mapc (lambda (file) (when file (pushnew file path)))
           (append (list TeX-auto-global TeX-style-global)
                   TeX-auto-private TeX-style-private
                   (list TeX-auto-local TeX-style-local)))
-    path)
+    (nreverse path))
   "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',

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    3 +++
 tex.el    |    4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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