summaryrefslogtreecommitdiff
path: root/lisp/info-look.el
diff options
context:
space:
mode:
authorStephen Eglen <stephen@gnu.org>2004-02-01 13:52:33 +0000
committerStephen Eglen <stephen@gnu.org>2004-02-01 13:52:33 +0000
commitb3a3e4e1628a48e4f3ca5004d2a7a48e6cc8052c (patch)
treec8b584ebbac6acdb8815a84d4065c224cc40245e /lisp/info-look.el
parentac459e8a5e2940435625ecc2541f2338a9e3901c (diff)
downloademacs-b3a3e4e1628a48e4f3ca5004d2a7a48e6cc8052c.tar.gz
Add support for maxima-mode. Update commentary
because info-lookup-symbol is now bound to C-h S.
Diffstat (limited to 'lisp/info-look.el')
-rw-r--r--lisp/info-look.el13
1 files changed, 12 insertions, 1 deletions
diff --git a/lisp/info-look.el b/lisp/info-look.el
index a184567ea9c..89eb1d7e411 100644
--- a/lisp/info-look.el
+++ b/lisp/info-look.el
@@ -27,7 +27,7 @@
;;; Commentary:
;; Really cool code to lookup info indexes.
-;; Try especially info-lookup-symbol (aka C-h TAB).
+;; Try especially info-lookup-symbol (aka C-h S).
;;; Code:
@@ -830,6 +830,17 @@ Return nil if there is nothing appropriate in the buffer near point."
nil; "^ - [^:]+:[ ]+" don't think this prefix is useful here.
nil)))
+(info-lookup-maybe-add-help
+ :mode 'maxima-mode
+ :ignore-case t
+ :regexp "[a-zA-Z_%]+"
+ :doc-spec '( ("(maxima)Function and Variable Index" nil
+ "^ - [^:]+:[ ]+\\(\\[[^=]*=[ ]+\\)?" nil)))
+
+(info-lookup-maybe-add-help
+ :mode 'inferior-maxima-mode
+ :other-modes '(maxima-mode))
+
;; coreutils and bash builtins overlap in places, eg. printf, so there's a
;; question which should come first. Some of the coreutils descriptions are
;; more detailed, but if bash is usually /bin/sh on a GNU system then the