[PATCH] No initial input for completing-read.

Subject: [PATCH] No initial input for completing-read.

Date: Mon, 14 Mar 2011 01:10:56 -0400

To: notmuch

Cc:

From: servilio


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

Thread: