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

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

[elpa] externals/auctex a944077 12/42: Use `delete' correctly for list v


From: Tassilo Horn
Subject: [elpa] externals/auctex a944077 12/42: Use `delete' correctly for list variable
Date: Thu, 23 Nov 2017 06:06:09 -0500 (EST)

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

    Use `delete' correctly for list variable
    
    * tex.el (TeX-search-files-kpathsea): Make sure that "." will be
    removed from the directory list even if "." is the first element of
    the list, when the SCOPE argument is `global'.
---
 tex.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tex.el b/tex.el
index 8083fa0..79b59b8 100644
--- a/tex.el
+++ b/tex.el
@@ -4580,7 +4580,7 @@ non-nil, remove file extension."
                                                TeX-kpathsea-path-delimiter
                                                "]+")))))
           (if (eq scope 'global)
-              (delete "." dirs))
+              (setq dirs (delete "." dirs)))
           (setq extensions (concat "\\." (regexp-opt extensions t) "\\'")
                 result (apply #'append (mapcar (lambda (x)
                                                  (when (file-readable-p x)



reply via email to

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