Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] "Help" command and completion
@ 2002-01-04 18:52 Michael Snyder
  2002-01-05  0:53 ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Michael Snyder @ 2002-01-04 18:52 UTC (permalink / raw)
  To: gdb-patches


Hmmm... currently the help command uses the default completer, 
which completes on symbols.  That's definitely not right.
Ideally, we want to complete on commands or something, but
substituting the noop complete would definitely be better than
completing on symbols.

OK to check in?

2002-01-04  Michael Snyder  <msnyder@redhat.com>

	* cli/cli-cmds.c (init_cli_cmds): The "help" command should not
	use the default completer.  Substitute noop_completer, although
	a command completer would be better.

Index: cli/cli-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-cmds.c,v
retrieving revision 1.10
diff -c -3 -p -r1.10 cli-cmds.c
*** cli-cmds.c	2001/09/01 21:38:05	1.10
--- cli-cmds.c	2002/01/05 02:47:58
*************** when gdb is started.", &cmdlist);
*** 668,674 ****
    c->completer = filename_completer;
  
    add_com ("quit", class_support, quit_command, "Exit gdb.");
!   add_com ("help", class_support, help_command, "Print list of commands.");
    add_com_alias ("q", "quit", class_support, 1);
    add_com_alias ("h", "help", class_support, 1);
  
--- 668,676 ----
    c->completer = filename_completer;
  
    add_com ("quit", class_support, quit_command, "Exit gdb.");
!   c = add_com ("help", class_support, help_command, 
! 	       "Print list of commands.");
!   c->completer = noop_completer;
    add_com_alias ("q", "quit", class_support, 1);
    add_com_alias ("h", "help", class_support, 1);
  


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2002-01-13 19:37 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-04 18:52 [RFA] "Help" command and completion Michael Snyder
2002-01-05  0:53 ` Eli Zaretskii
2002-01-05 13:01   ` Michael Snyder
2002-01-08 15:15     ` Michael Snyder
2002-01-08 23:54       ` Eli Zaretskii
2002-01-09  7:19         ` Fernando Nasser
2002-01-09 10:28           ` Michael Snyder
2002-01-09 11:14             ` Eli Zaretskii
2002-01-09 11:22               ` Daniel Jacobowitz
2002-01-09 11:24                 ` Christopher Faylor
2002-01-10  0:41                   ` Eli Zaretskii
2002-01-10  7:28                     ` Andrew Cagney
2002-01-13 11:36                       ` Andrew Cagney
2002-01-10  0:19                 ` Eli Zaretskii
2002-01-10  0:18             ` Eli Zaretskii
2002-01-13 11:37               ` Andrew Cagney
2002-01-09 10:27         ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox