--- texinfo-4.7/info/infodoc.c.orig 2004-03-14 01:57:29.000000000 +0100 +++ texinfo-4.7/info/infodoc.c 2004-07-01 17:53:52.236375824 +0200 @@ -185,6 +185,10 @@ #endif /* !INFOKEY */ +static char *where_is_rep = (char *)NULL; +static int where_is_rep_index = 0; +static int where_is_rep_size = 0; + static char *where_is_internal (Keymap map, InfoCommand *cmd); void @@ -334,6 +338,8 @@ { InfoCommand *cmd = DocInfoCmd(&function_doc_array[i]); + where_is_rep_index = 0; + if (InfoFunction(cmd) != (VFunction *) info_do_lowercase_version && !where_is_internal (info_keymap, cmd) && !where_is_internal (echo_area_keymap, cmd)) @@ -1052,10 +1058,6 @@ /* Return a string of characters which could be typed from the keymap MAP to invoke FUNCTION. */ -static char *where_is_rep = (char *)NULL; -static int where_is_rep_index = 0; -static int where_is_rep_size = 0; - char * where_is (Keymap map, InfoCommand *cmd) {