summaryrefslogtreecommitdiff
path: root/lisp/info-look.el
diff options
context:
space:
mode:
authorStephen Eglen <stephen@gnu.org>1999-08-22 18:09:58 +0000
committerStephen Eglen <stephen@gnu.org>1999-08-22 18:09:58 +0000
commitbe09a49756133a0696dd328c395caefa07ae2f72 (patch)
treedb016e909dc5cdcec637ababa3a425bbeb8d393d /lisp/info-look.el
parent4614e0ebd027d72b6e29333ccc1edf617d739a45 (diff)
downloademacs-be09a49756133a0696dd328c395caefa07ae2f72.tar.gz
Octave-mode support: for the function index entries, allow the prefix
to also match optional return value list of form `[X Y ... Z] = '.
Diffstat (limited to 'lisp/info-look.el')
-rw-r--r--lisp/info-look.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/info-look.el b/lisp/info-look.el
index df4cfad4455..dc9cb0bec81 100644
--- a/lisp/info-look.el
+++ b/lisp/info-look.el
@@ -761,7 +761,8 @@ Return nil if there is nothing appropriate in the buffer near point."
(info-lookup-maybe-add-help
:mode 'octave-mode
:regexp "[_a-zA-Z0-9]+"
- :doc-spec '(("(octave)Function Index" nil "^ - [^:]+:[ ]+" nil)
+ :doc-spec '(("(octave)Function Index" nil
+ "^ - [^:]+:[ ]+\\(\\[[^=]*=[ ]+\\)?" nil)
("(octave)Variable Index" nil "^ - [^:]+:[ ]+" nil)
;; Catch lines of the form "xyz statement"
("(octave)Concept Index"