From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJiLg-0003ld-Jm for qemu-devel@nongnu.org; Thu, 25 Jun 2009 02:22:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJiLb-0003jl-Te for qemu-devel@nongnu.org; Thu, 25 Jun 2009 02:22:15 -0400 Received: from [199.232.76.173] (port=55413 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJiLb-0003jf-MQ for qemu-devel@nongnu.org; Thu, 25 Jun 2009 02:22:11 -0400 Received: from mx20.gnu.org ([199.232.41.8]:50313) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MJiLb-0003mm-By for qemu-devel@nongnu.org; Thu, 25 Jun 2009 02:22:11 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJiLZ-0002GK-OR for qemu-devel@nongnu.org; Thu, 25 Jun 2009 02:22:09 -0400 Message-ID: <4A43178A.9040201@web.de> Date: Thu, 25 Jun 2009 08:22:02 +0200 From: Jan Kiszka MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig10F74501B71030FE6D5A78AF" Sender: jan.kiszka@web.de Subject: [Qemu-devel] [PATCH] monitor: Add completion for help command List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig10F74501B71030FE6D5A78AF Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Signed-off-by: Jan Kiszka --- monitor.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor.c index 6b45f6c..e0faf1c 100644 --- a/monitor.c +++ b/monitor.c @@ -2921,6 +2921,11 @@ static void monitor_find_completion(const char *cm= dline) for(key =3D key_defs; key->name !=3D NULL; key++) { cmd_completion(str, key->name); } + } else if (!strcmp(cmd->name, "help|?")) { + readline_set_completion_index(cur_mon->rs, strlen(str));= + for (cmd =3D mon_cmds; cmd->name !=3D NULL; cmd++) { + cmd_completion(str, cmd->name); + } } break; default: --------------enig10F74501B71030FE6D5A78AF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkpDF44ACgkQniDOoMHTA+lHrwCbBMn74a9xLA+03qFm9oAV0vER iH8An0/lvRw/H4bkzX3NVqSB331BnhdL =xOHJ -----END PGP SIGNATURE----- --------------enig10F74501B71030FE6D5A78AF--