From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IZ665-0002yl-4J for qemu-devel@nongnu.org; Sat, 22 Sep 2007 10:36:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IZ663-0002yO-Ez for qemu-devel@nongnu.org; Sat, 22 Sep 2007 10:36:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZ663-0002yL-8i for qemu-devel@nongnu.org; Sat, 22 Sep 2007 10:36:39 -0400 Received: from rv-out-0910.google.com ([209.85.198.190]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IZ662-0003SF-TA for qemu-devel@nongnu.org; Sat, 22 Sep 2007 10:36:39 -0400 Received: by rv-out-0910.google.com with SMTP id g11so4093601rvb for ; Sat, 22 Sep 2007 07:36:37 -0700 (PDT) Message-ID: Date: Sat, 22 Sep 2007 16:36:36 +0200 From: "Pascal Terjan" MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_38548_23800475.1190471796966" Subject: [Qemu-devel] [PATCH] Improve completion in monitor Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ------=_Part_38548_23800475.1190471796966 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, When you want to change CDROM, and you have 2 files in the directory called mandriva-linux-2008.0-free-rc2-CD1.i586.iso and mandriva-linux-2008.0-free-rc2-CD2.i586.iso, you have to enter mandriva-linux-2008.0-free-rc2-CD2 by hand and only get completion on .i586.iso which is not really helpful. The attached patch gets the common prefix so that you can do man2 ------=_Part_38548_23800475.1190471796966 Content-Type: text/x-patch; name="qemu-0.9.0-completion.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="qemu-0.9.0-completion.patch" X-Attachment-Id: file0 SW5kZXg6IHJlYWRsaW5lLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL3NvdXJjZXMvcWVtdS9xZW11 L3JlYWRsaW5lLmMsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNQpkaWZmIC11IC1yMS41IHJlYWRs aW5lLmMKLS0tIHJlYWRsaW5lLmMJMTcgU2VwIDIwMDcgMDg6MDk6NDUgLTAwMDAJMS41CisrKyBy ZWFkbGluZS5jCTIyIFNlcCAyMDA3IDEzOjM1OjE4IC0wMDAwCkBAIC0zMDAsNyArMzAwLDcgQEAK IAogc3RhdGljIHZvaWQgdGVybV9jb21wbGV0aW9uKHZvaWQpCiB7Ci0gICAgaW50IGxlbiwgaSwg aiwgbWF4X3dpZHRoLCBuYl9jb2xzOworICAgIGludCBsZW4sIGksIGosIG1heF93aWR0aCwgbmJf Y29scywgbWF4X3ByZWZpeDsKICAgICBjaGFyICpjbWRsaW5lOwogCiAgICAgbmJfY29tcGxldGlv bnMgPSAwOwpAQCAtMzI3LDExICszMjcsMjYgQEAKICAgICB9IGVsc2UgewogICAgICAgICB0ZXJt X3ByaW50ZigiXG4iKTsKICAgICAgICAgbWF4X3dpZHRoID0gMDsKKyAgICAgICAgbWF4X3ByZWZp eCA9IDA7CQogICAgICAgICBmb3IoaSA9IDA7IGkgPCBuYl9jb21wbGV0aW9uczsgaSsrKSB7CiAg ICAgICAgICAgICBsZW4gPSBzdHJsZW4oY29tcGxldGlvbnNbaV0pOworICAgICAgICAgICAgaWYg KGk9PTApIHsKKyAgICAgICAgICAgICAgICBtYXhfcHJlZml4ID0gbGVuOworICAgICAgICAgICAg fSBlbHNlIHsKKyAgICAgICAgICAgICAgICBpZiAobGVuIDwgbWF4X3ByZWZpeCkKKyAgICAgICAg ICAgICAgICAgICAgbWF4X3ByZWZpeCA9IGxlbjsKKyAgICAgICAgICAgICAgICBmb3Ioaj0wOyBq PG1heF9wcmVmaXg7IGorKykgeworICAgICAgICAgICAgICAgICAgICBpZiAoY29tcGxldGlvbnNb aV1bal0gIT0gY29tcGxldGlvbnNbMF1bal0pCisgICAgICAgICAgICAgICAgICAgICAgICBtYXhf cHJlZml4ID0gajsKKyAgICAgICAgICAgICAgICB9CisgICAgICAgICAgICB9CiAgICAgICAgICAg ICBpZiAobGVuID4gbWF4X3dpZHRoKQogICAgICAgICAgICAgICAgIG1heF93aWR0aCA9IGxlbjsK ICAgICAgICAgfQorICAgICAgICBpZiAobWF4X3ByZWZpeCA+IDApIAorICAgICAgICAgICAgZm9y KGkgPSBjb21wbGV0aW9uX2luZGV4OyBpIDwgbWF4X3ByZWZpeDsgaSsrKSB7CisgICAgICAgICAg ICAgICAgdGVybV9pbnNlcnRfY2hhcihjb21wbGV0aW9uc1swXVtpXSk7CisgICAgICAgICAgICB9 CiAgICAgICAgIG1heF93aWR0aCArPSAyOwogICAgICAgICBpZiAobWF4X3dpZHRoIDwgMTApCiAg ICAgICAgICAgICBtYXhfd2lkdGggPSAxMDsK ------=_Part_38548_23800475.1190471796966--