changeset 46691:ac544e207278

(Info-find-index-name): Search for a function definition with a return type.
author Richard M. Stallman <rms@gnu.org>
date Thu, 25 Jul 2002 18:19:43 +0000
parents 68c134e00c87
children 44e68b04421a
files lisp/info.el
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/info.el	Thu Jul 25 18:18:10 2002 +0000
+++ b/lisp/info.el	Thu Jul 25 18:19:43 2002 +0000
@@ -1939,6 +1939,10 @@
     (if (or (re-search-forward (format
 				"[a-zA-Z]+: %s\\( \\|$\\)"
 				(regexp-quote name)) nil t)
+	    ;; Find a function definition with a return type.
+	    (re-search-forward (format
+                                "[a-zA-Z]+: [a-zA-Z0-9_]+ %s\\( \\|$\\)"
+                                (regexp-quote name)) nil t)
 	    (search-forward (format "`%s'" name) nil t)
 	    (and (string-match "\\`.*\\( (.*)\\)\\'" name)
 		 (search-forward