branch: externals/auctex
commit 5a538cb4d8ab4842b15c800753204cbad404d932
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>
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)