From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Subject: Re: [contacts] No completion in Gnus Date: Tue, 04 Oct 2011 22:31:10 +0200 Message-ID: <86ipo4bisx.fsf@googlemail.com> References: <86pqicblti.fsf@googlemail.com> <81ehysplrb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBBeB-0000lW-BP for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 16:31:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBBeA-0002Nh-05 for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 16:31:27 -0400 Received: from lo.gmane.org ([80.91.229.12]:42977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBBe9-0002Nc-I7 for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 16:31:25 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RBBe6-00005B-Vb for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 22:31:22 +0200 Received: from g231104245.adsl.alicedsl.de ([92.231.104.245]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Oct 2011 22:31:22 +0200 Received: from quintfall by g231104245.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Oct 2011 22:31:22 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Jambunathan K writes: > Thorsten writes: > >> Hello List, I have a org-contacts file with a few contacts with EMAIL >> property, taken from gnus using org-capture as described in the >> org-contacts manual. The contacts are tagged with some tags. But if I >> try to send an email to one of the contacts using completion in >> message-mode, nothing happens. I type + and press in the To: >> header, but to no avail. I even restarted Emacs without loading bbdb, >> since there seemed to be some interference, but that didn't help >> either. I cannot find any more variables to connect org-contacts with >> gnus, so I guess it should work out of the box. > > (caveat: I have never used org-contacts) > > In such cases, typically there is an insinuate function. Yes, there is > one > > (org-contacts-gnus-insinuate) > > Try adding that to .emacs or eval it. > > I also see this snippet of code in org-contacts.el and is done > automatically for you. > > (when (boundp 'completion-at-point-functions) > (add-hook 'message-mode-hook > (lambda () > (add-to-list 'completion-at-point-functions > 'org-contacts-message-complete-function)))) > > > So while composing the mail, check the value of variable > completion-at-point-functions and make sure you see some org-contacts > related entries there. Thats the culprit - I use Emacs 23.1.1, and it seems that variable completion-at-point-functions has been added to Emacs just recently with version 23.2. So I have to update my Emacs - should I go for Emacs 24 right away, or is that to early? > Looks like the guts of completion happen in > org-contacts-complete-name. So you can place your cursor on a message > header and try doing > > M-: (org-contacts-complete-name) > > Hope something interesting will happen. > >> What might be wrong in this case? >> Thanks for any hints. >> >> PS >> One further org-contacts related question: there is a predefined >> property ADDRESS, without any inner structure. Am I supposed to write my own >> org-capture template for that property? How would that look like - just >> one single string? If I want something more structured (street, city, >> zip-code etc), I have to define one property for each info-piece, or is >> there something like a compound property? Thanks for your help -- Thorsten