From: Stephen Eglen Date: Sun, 22 Aug 1999 18:09:58 +0000 (+0000) Subject: Octave-mode support: for the function index entries, allow the prefix X-Git-Tag: emacs-pretest-21.0.90~7077 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=57f3e9c9f6316042b10481648c02837c915ca085;p=emacs.git Octave-mode support: for the function index entries, allow the prefix to also match optional return value list of form `[X Y ... Z] = '. --- 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"