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

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

[elpa] externals/auctex 9e5e5f6 20/42: ; * tex.el (TeX-doc-backend-alist


From: Tassilo Horn
Subject: [elpa] externals/auctex 9e5e5f6 20/42: ; * tex.el (TeX-doc-backend-alist): Use `TeX-search-files-by-type'.
Date: Thu, 23 Nov 2017 06:06:11 -0500 (EST)

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

    ; * 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.



reply via email to

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