auctex
[Top][All Lists]
Advanced

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

[AUCTeX] Re: Trouble with Find Documentation


From: Ralf Angeli
Subject: [AUCTeX] Re: Trouble with Find Documentation
Date: Fri, 30 Jun 2006 23:51:30 +0200

* Ralf Angeli (2006-06-28) writes:

> I just had a quick look and the problem appears to be the alternate
> search which is being used if kpathsea-based search is not available.
> That's the case with MikTeX for example.  The alternate search,
> however, searches below the various TeX roots in the "tex"
> subdirectory whereas all the documentation is below the "doc"
> subdirectory.  I'll try to fix this ...

The following patch should fix it:

--- tex.el      24 Jun 2006 12:00:49 +0200      5.579
+++ tex.el      30 Jun 2006 23:42:08 +0200      
@@ -4744,7 +4744,10 @@
   '((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
+                (TeX-macro-global-internal
+                 "latex" '("/doc/") '("/usr/share/texmf/doc/"))
+                '("dvi" "pdf" "ps" "txt" "html") t t)))
            (lambda (doc)
              (call-process "texdoc" nil 0 nil doc)))
     (latex-info (latex-mode)


However, it might be better to add a variable for specifying available
TeX trees (which could have a calculated value as default, just like
`TeX-macro-global') and using that for searching below the doc
subdirectory.  Alternatively the variable could be used to give the
paths to doc directories directly.

-- 
Ralf





reply via email to

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