branch: externals/auctex
commit 9e5e5f6a29071b44ebe60adcb48f605b469f78fd
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>
; * tex.el (TeX-doc-backend-alist): Use `TeX-search-files-by-type'.
---
tex.el | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/tex.el b/tex.el
index 06c438d..89bcd87 100644
--- a/tex.el
+++ b/tex.el
@@ -6465,15 +6465,7 @@ the number of the file to view, anything else to skip:
") list)))
'((texdoc (plain-tex-mode latex-mode doctex-mode ams-tex-mode context-mode)
(lambda ()
(when (executable-find "texdoc")
- (TeX-search-files
- ;; Explicitely supply doc directory for
- ;; non-kpathsea-based TeX systems.
- (unless (stringp TeX-kpathsea-path-delimiter)
- (or (TeX-tree-expand
- '("$SYSTEXMF" "$TEXMFLOCAL" "$TEXMFMAIN" "$TEXMFDIST")
- "latex" '("/doc/"))
- `(,@TeX-macro-global ,@TeX-macro-private)))
- '("dvi" "pdf" "ps" "txt" "html") t t)))
+ (TeX-search-files-by-type 'docs 'global t t)))
(lambda (doc)
;; texdoc in MiKTeX requires --view in order to start
;; the viewer instead of an intermediate web page.