diff options
| -rw-r--r-- | lisp/info-look.el | 14 |
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 | ||