unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: notmuch@notmuchmail.org
Cc: Tomi Ollila <tomi.ollila@iki.fi>
Subject: [RFC PATCH 3/3] emacs: use selection-menu for recipient address completion
Date: Thu, 23 Feb 2012 17:10:17 +0200	[thread overview]
Message-ID: <1330009817-24148-3-git-send-email-tomi.ollila@iki.fi> (raw)
In-Reply-To: <1330009817-24148-1-git-send-email-tomi.ollila@iki.fi>

Replace use of completing-read with selection-menu when
completing for recipient addresses.
---
 emacs/notmuch-address.el |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el
index 2bf762b..1d63fe4 100644
--- a/emacs/notmuch-address.el
+++ b/emacs/notmuch-address.el
@@ -45,6 +45,8 @@ line."
 (defun notmuch-address-options (original)
   (process-lines notmuch-address-command original))
 
+(require 'selection-menu)
+
 (defun notmuch-address-expand-name ()
   (let* ((end (point))
 	 (beg (save-excursion
@@ -61,9 +63,7 @@ line."
 		  ((eq num-options 1)
 		   (car options))
 		  (t
-		   (completing-read (format "Address (%s matches): " num-options)
-				    (cdr options) nil nil (car options)
-				    'notmuch-address-history)))))
+		   (selection-menu "Send To:" options t)))))
     (if chosen
 	(progn
 	  (push chosen notmuch-address-history)
-- 
1.7.8.2

  parent reply	other threads:[~2012-02-23 15:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-23 15:10 [RFC PATCH 1/3] emacs: selection-menu.el Tomi Ollila
2012-02-23 15:10 ` [RFC PATCH 2/3] emacs: add selection-menu.el to Makefile.local Tomi Ollila
2012-02-23 15:10 ` Tomi Ollila [this message]
2012-02-24 23:36 ` [RFC PATCH 1/3] emacs: selection-menu.el Mark Walters
2012-02-25 13:48   ` Tomi Ollila
2012-02-25 17:43   ` Tom Prince

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

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1330009817-24148-3-git-send-email-tomi.ollila@iki.fi \
    --to=tomi.ollila@iki.fi \
    --cc=notmuch@notmuchmail.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).