From 57f3e9c9f6316042b10481648c02837c915ca085 Mon Sep 17 00:00:00 2001 From: Stephen Eglen Date: Sun, 22 Aug 1999 18:09:58 +0000 Subject: [PATCH] Octave-mode support: for the function index entries, allow the prefix to also match optional return value list of form `[X Y ... Z] = '. --- lisp/info-look.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.39.5