aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStephen Eglen1998-09-29 08:45:12 +0000
committerStephen Eglen1998-09-29 08:45:12 +0000
commit054e5c2010ca91e68c1ecfba6dd4da9b3416a0d9 (patch)
treea4bf47bd799ee9808f1b89a4d62c6f7d8b227dea /lisp
parent1e5a443809ef0eea5cd448a98a83932501499b02 (diff)
downloademacs-054e5c2010ca91e68c1ecfba6dd4da9b3416a0d9.tar.gz
emacs-054e5c2010ca91e68c1ecfba6dd4da9b3416a0d9.zip
Add support for Octave.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/info-look.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/lisp/info-look.el b/lisp/info-look.el
index 10892600623..d1d5661fb8a 100644
--- a/lisp/info-look.el
+++ b/lisp/info-look.el
@@ -752,6 +752,20 @@ Return nil if there is nothing appropriate."
752 :doc-spec '(("(r5rs)Index" nil 752 :doc-spec '(("(r5rs)Index" nil
753 "^[ \t]+- [^:]+:[ \t]*" "\\b"))) 753 "^[ \t]+- [^:]+:[ \t]*" "\\b")))
754 754
755(info-lookup-maybe-add-help
756 :mode 'octave-mode
757 :regexp "[_a-zA-Z0-9]+"
758 :doc-spec '(("(octave)Function Index" nil "^ - [^:]+:[ ]+" nil)
759 ("(octave)Variable Index" nil "^ - [^:]+:[ ]+" nil)
760 ;; Catch lines of the form "xyz statement"
761 ("(octave)Concept Index"
762 (lambda (item)
763 (cond
764 ((string-match "^\\([A-Z]+\\) statement\\b" item)
765 (match-string 1 item))
766 (t nil)))
767 nil; "^ - [^:]+:[ ]+" don't think this prefix is useful here.
768 nil)))
755 769
756(provide 'info-look) 770(provide 'info-look)
757 771