auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] Changes to auctex/tex.el,v


From: Ralf Angeli
Subject: [AUCTeX-diffs] Changes to auctex/tex.el,v
Date: Sun, 02 Jul 2006 21:41:16 +0000

CVSROOT:        /cvsroot/auctex
Module name:    auctex
Changes by:     Ralf Angeli <angeli>    06/07/02 21:41:16

Index: tex.el
===================================================================
RCS file: /cvsroot/auctex/auctex/tex.el,v
retrieving revision 5.579
retrieving revision 5.580
diff -u -b -r5.579 -r5.580
--- tex.el      24 Jun 2006 10:03:51 -0000      5.579
+++ tex.el      2 Jul 2006 21:41:15 -0000       5.580
@@ -4744,7 +4744,16 @@
   '((texdoc (plain-tex-mode latex-mode doctex-mode ams-tex-mode context-mode)
            (lambda ()
              (when (executable-find "texdoc")
-               (TeX-search-files nil '("dvi" "pdf" "ps" "txt" "html") t t)))
+               (TeX-search-files
+                ;; Explicitely supply doc directory for
+                ;; non-kpathsea-based TeX systems.
+                (unless (stringp TeX-kpathsea-path-delimiter)
+                  (TeX-macro-global-internal
+                   "latex" '("/doc/")
+                   ;; This likely won't improve the outcome but does
+                   ;; not make the situation worse than in the nil case.
+                   `(,@TeX-macro-global ,@TeX-macro-private)))
+                '("dvi" "pdf" "ps" "txt" "html") t t)))
            (lambda (doc)
              (call-process "texdoc" nil 0 nil doc)))
     (latex-info (latex-mode)




reply via email to

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