Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E6E47429E25 for ; Sun, 13 Mar 2011 22:10:57 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4YpxvBPqxfwi for ; Sun, 13 Mar 2011 22:10:57 -0700 (PDT) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 6232F431FD0 for ; Sun, 13 Mar 2011 22:10:57 -0700 (PDT) Received: by mail-fx0-f53.google.com with SMTP id 11so2821980fxm.26 for ; Sun, 13 Mar 2011 22:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=bnKMOz9vSsER1sSc5FiVdv3OeHrQCh4+Z6v/cjaqsP4=; b=vzpI/wERXgmXHrH+IJ2IHxnOmWr5B6Ti3eQco7625aOmeTGI5Hjvj+YEUSg2k1DMjW IptWjYQKkqlT4QJwxTqs+kMUfCdcI/LzkOSbYdjcI+sciGWKJsEKaF8i4U1jhElPbZH9 yicVYNv3sVri3zt7+ytPIL3s7MLfSaLP5uYWU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=l36J1W0roJzfWgWZCPFjwh7wmpKcIzWtp09RSP/LuTZepFX0PnOz0FuJFbgGH4MfKG D1Ee0Qg54vXgIZ66yaJk2Bo3hMlOSusP4TRsou5hlHhqxrKUq17CVuyk+GD38G3cQmrm 2bgaKlBdlTJ8rcoEXClrGgWhD0o6AHEj9BqFE= MIME-Version: 1.0 Received: by 10.223.20.216 with SMTP id g24mr408681fab.115.1300079456943; Sun, 13 Mar 2011 22:10:56 -0700 (PDT) Received: by 10.223.102.73 with HTTP; Sun, 13 Mar 2011 22:10:56 -0700 (PDT) Date: Mon, 14 Mar 2011 01:10:56 -0400 Message-ID: Subject: [PATCH] No initial input for completing-read. From: servilio To: notmuch Content-Type: text/plain; charset=UTF-8 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2011 05:10:58 -0000 Seeding the autocompletion with the first match makes it harder to see what the other matches are, as all the extra characters would need to be deleted before being able to see the matches. --- emacs/notmuch-address.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el index 2960da9..fc2df12 100644 --- a/emacs/notmuch-address.el +++ b/emacs/notmuch-address.el @@ -57,7 +57,7 @@ line." (chosen (if (eq num-options 1) (car options) (completing-read (format "Address (%s matches): " num-options) - (cdr options) nil nil (car options) + options nil nil nil 'notmuch-address-history)))) (when chosen (push chosen notmuch-address-history) -- 1.7.4.1