branch: externals/auctex
commit a9440770f0a935769b46bf08e7e8b936733b6eab
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>

    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