From: Michael Snyder <msnyder@cygnus.com>
To: gdb-patches@sources.redhat.com
Subject: [RFA] "Help" command and completion
Date: Fri, 04 Jan 2002 18:52:00 -0000 [thread overview]
Message-ID: <200201050247.g052lHU16418@reddwarf.cygnus.com> (raw)
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);
next reply other threads:[~2002-01-05 2:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-04 18:52 Michael Snyder [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200201050247.g052lHU16418@reddwarf.cygnus.com \
--to=msnyder@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox