[Top][All Lists]
[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: |
Sat, 20 Feb 2010 15:01:35 +0000 |
CVSROOT: /cvsroot/auctex
Module name: auctex
Changes by: Ralf Angeli <angeli> 10/02/20 15:01:35
Index: tex.el
===================================================================
RCS file: /cvsroot/auctex/auctex/tex.el,v
retrieving revision 5.661
retrieving revision 5.662
diff -u -b -r5.661 -r5.662
--- tex.el 13 Feb 2010 14:17:19 -0000 5.661
+++ tex.el 20 Feb 2010 15:01:35 -0000 5.662
@@ -5463,7 +5463,13 @@
(unless (null completions)
(add-to-list 'docs (cons completions (nth 0 elt)))))))
(if (null docs)
- (message "No documentation found")
+ (progn
+ (if (executable-find "texdoc")
+ ;; Fallback if we did not find anything via the backend list.
+ (let ((doc (read-from-minibuffer "Input for `texdoc': ")))
+ (when doc (call-process "texdoc" nil 0 nil "--view" doc)))
+ ;; Give up.
+ (message "No documentation found")))
;; Ask the user about the package, command, or document.
(when (and (interactive-p)
(or (not name) (string= name "")))