summaryrefslogtreecommitdiff
path: root/lisp/info-look.el
diff options
context:
space:
mode:
authorLeo Liu <sdl.web@gmail.com>2013-04-22 22:41:32 +0800
committerLeo Liu <sdl.web@gmail.com>2013-04-22 22:41:32 +0800
commit72d548a9d79e2069272e5d43392e1bdf366c3f02 (patch)
treed2c0b90a4571b32e079f5f52a55b6ad37ccef90d /lisp/info-look.el
parentd08536296ce1c7c8145aa8aee554cbbf4d11d213 (diff)
downloademacs-72d548a9d79e2069272e5d43392e1bdf366c3f02.tar.gz
* info-look.el: Prefer latex2e.info.
Fixes: debbugs:14240
Diffstat (limited to 'lisp/info-look.el')
-rw-r--r--lisp/info-look.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/info-look.el b/lisp/info-look.el
index afe4301c659..e43cd731547 100644
--- a/lisp/info-look.el
+++ b/lisp/info-look.el
@@ -881,8 +881,11 @@ Return nil if there is nothing appropriate in the buffer near point."
(info-lookup-maybe-add-help
:mode 'latex-mode
:regexp "\\\\\\([a-zA-Z]+\\|[^a-zA-Z]\\)"
- :doc-spec '(("(latex)Command Index" nil
- "`" "\\({[^}]*}\\)?'")))
+ :doc-spec `((,(if (Info-find-file "latex2e" t)
+ ;; From http://home.gna.org/latexrefman
+ "(latex2e)Command Index"
+ "(latex)Command Index")
+ nil "`" "\\({[^}]*}\\)?'")))
(info-lookup-maybe-add-help
:mode 'emacs-lisp-mode