Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread David Edmondson
On Fri, 23 Apr 2010 17:49:38 -0700, Carl Worth cwo...@cworth.org wrote:
 I finally hit on doing (require 'notmuch-address) in .emacs. As noted
 previously, can we please make (require 'notmuch) pull in all notmuch
 functionality rather than having it separated like this?

Patch sent.

 Finally, though, I haven't figured out how to get more than a single
 match from this. If the first match isn't what I want, how do I see and
 choose later matches?

M-n to move forward in the list, M-p to move backwards (including into
any history you have accrued).

dme.
-- 
David Edmondson, http://dme.org
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread Sebastian Spaeth
On 2010-04-26, David Edmondson wrote:
 M-n to move forward in the list, M-p to move backwards (including into
 any history you have accrued).

Alternatively, some of us have that weird new invention on their
keyboards called arrow keys ;-)
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread Carl Worth
On Mon, 26 Apr 2010 11:49:46 +0100, David Edmondson d...@dme.org wrote:
 On Fri, 23 Apr 2010 17:49:38 -0700, Carl Worth cwo...@cworth.org wrote:
  I finally hit on doing (require 'notmuch-address) in .emacs. As noted
  previously, can we please make (require 'notmuch) pull in all notmuch
  functionality rather than having it separated like this?
 
 Patch sent.

Pushed.

  Finally, though, I haven't figured out how to get more than a single
  match from this. If the first match isn't what I want, how do I see and
  choose later matches?
 
 M-n to move forward in the list, M-p to move backwards (including into
 any history you have accrued).

Ah-hah! Thanks for filling me in. I'm glad to finally have usable
notmuch-based address completion now.

 Perhaps we could add a hint in the minibuffer prompt?

Address (+6 more): Name Here addr...@example.com

I'd like to come up with something more specific in that hint, but it
gets a little long:

Address (Use M-n/M-p or arrow keys for 6 more):

:-P

I don't suppose it would be feasible to make Space and DEL navigate
through the list as well would it?

-Carl

-- 
carl.d.wo...@intel.com


pgpSJBQtnbFZG.pgp
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread David Edmondson

   To: David Edmondson d...@dme.org, notmuch@notmuchmail.org, 
d...@yoom.home.cworth.org
   Cc: c...@ut.hh.sledj.net
   Date: Mon, 26 Apr 2010 08:21:51 -0700

Something interesting is happening here :-)

dme.
-- 
David Edmondson, http://dme.org


pgpgH6xAit11l.pgp
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread Carl Worth
On Mon, 26 Apr 2010 17:27:38 +0100, David Edmondson d...@dme.org wrote:
 Patch is sent for this, though given that it's not easy to change the
 prompt as you step through, it says:
 
   Address (7 match): Name Here addr...@example.com

Thanks. I've pushed this. Bonus points to someone who fixes it to avoid
printing 1 matches.

 Moving through potential completions is pretty standard Emacs UI stuff,
 so I'm not sure if it's necessary to explain? (Of course, that you had
 to ask suggests otherwise...)

It is funny that I've used emacs for all these years without learning
this.

But in general, I have been trying to keep the notmuch interface fairly
self-explanatory. I know that some people that have never used emacs at
all are giving notmuch a try, just to see what it's like. And I'd like
to help them have as positive experience as possible.

  I don't suppose it would be feasible to make Space and DEL navigate
  through the list as well would it?
 
 Not with `completing-read', but I'll look at it after 0.3.

That's what I'd assumed. If we end up doing our own thing here, I'd even
have a few more things on my wishlist. I think I'd like for matching
addresses to start appearing in the minibuffer as I started typing,
(even before hitting TAB).

Of course, for that we're going to need a faster address completer,
which will mean getting the actual addresses into the database. So I'll
add that to my list of the many things I want to fix in the great
database-schema-rewrite that's coming soon.

-Carl

-- 
carl.d.wo...@intel.com


pgprS3DefQ77I.pgp
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread Carl Worth
On Mon, 26 Apr 2010 17:28:47 +0100, David Edmondson d...@dme.org wrote:
 
To: David Edmondson d...@dme.org, notmuch@notmuchmail.org, 
 d...@yoom.home.cworth.org
Cc: c...@ut.hh.sledj.net
Date: Mon, 26 Apr 2010 08:21:51 -0700
 
 Something interesting is happening here :-)

Dirk wasn't involved in the original message I was replying to at all.

And I can confirm that notmuch reply id:87k4ru5vzp@ut.hh.sledj.net
isn't inserting dirk anywhere.

But this is an address-completion thread, and I did test that
functionality by typing dirk[TAB]. I would have thought that I had
deleted the results of any expansion, (or left the expanded results).

David, you seem to be having the problem with c...@ut.hh.sledj.net more
frequently, so perhaps you can identify the trigger.

-Carl


pgpDAIJebpwuY.pgp
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread Carl Worth
carl.d.wo...@intel.com
On Mon, 26 Apr 2010 19:20:04 +0100, David Edmondson d...@dme.org wrote:
 On Mon, 26 Apr 2010 11:03:36 -0700, Carl Worth cwo...@cworth.org wrote:
  Thanks. I've pushed this. Bonus points to someone who fixes it to avoid
  printing 1 matches.
 
 It shouldn't do that:
...
 Does it?

Bah. My fault for glancing at the code (incorrectly) rather than running
it.

Move along, nothing to see here...

-Carl


pgpPBuxY81ky8.pgp
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-22 Thread Sebastian Spaeth
On 2010-04-22, David Edmondson wrote:
 A tool `notmuch-addresses' is required to produce addresses which
 match a query string. An example of a suitable script can be found in
 the git repository at
 http://jkr.acm.jhu.edu/git/notmuch_addresses.git
 There are no doubt others.

no doubt :-).

This works great, the only disadvantage is that it will disable bbdb
and eudc by default if a notmuch-addresses binary is available. I think
that is a reasonable assumption.

Is it really necessary to try to append .exe? Even Windows users
should be able to provide the full binary name if asked for it
(especially when using emacs on Windows).

in any case:

Signed-off: Sebastian Spaeth sebast...@sspaeth.de
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-22 Thread Dirk Hohndel
On Thu, 22 Apr 2010 10:03:43 +0100, David Edmondson d...@dme.org wrote:
 A tool `notmuch-addresses' is required to produce addresses which
 match a query string. An example of a suitable script can be found in
 the git repository at
 http://jkr.acm.jhu.edu/git/notmuch_addresses.git
 There are no doubt others.

+1 on getting this into 0.3

/D

-- 
Dirk Hohndel
Intel Open Source Technology Center
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch