emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex 5a538cb 19/42: Prevent possible truncation of li


From: Tassilo Horn
Subject: [elpa] externals/auctex 5a538cb 19/42: Prevent possible truncation of list value
Date: Thu, 23 Nov 2017 06:06:11 -0500 (EST)

branch: externals/auctex
commit 5a538cb4d8ab4842b15c800753204cbad404d932
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>

    Prevent possible truncation of list value
    
    * tex.el (TeX-search-files-by-type): Use
    `TeX-delete-duplicate-strings' instead of `delete-dups'.
---
 tex.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tex.el b/tex.el
index d1b7791..06c438d 100644
--- a/tex.el
+++ b/tex.el
@@ -4715,7 +4715,12 @@ If optional argument STRIP is non-nil, remove file 
extension."
                (error "No TeX trees available; configure `TeX-tree-roots'")
              ;; Expand variables.
               (setq expdirs
-                    (delete-dups
+                   ;; Don't use `delete-dups' instead of
+                   ;; `TeX-delete-duplicate-strings' here.
+                   ;; Otherwise, when the last element of `rawdirs'
+                   ;; is a variable, its value might be truncated as
+                   ;; side effect.
+                    (TeX-delete-duplicate-strings
                      (apply #'append
                             (mapcar (lambda (rawdir)
                                       (if (symbolp rawdir)



reply via email to

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