From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [contacts] No completion in Gnus Date: Wed, 05 Oct 2011 01:33:36 +0530 Message-ID: <81ehysplrb.fsf@gmail.com> References: <86pqicblti.fsf@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBBDa-0004Ny-3B for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 16:03:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBBDY-00076U-LQ for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 16:03:58 -0400 Received: from mail-qw0-f41.google.com ([209.85.216.41]:59073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBBDY-00076O-GT for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 16:03:56 -0400 Received: by qadb17 with SMTP id b17so884030qad.0 for ; Tue, 04 Oct 2011 13:03:56 -0700 (PDT) In-Reply-To: <86pqicblti.fsf@googlemail.com> (Thorsten's message of "Tue, 04 Oct 2011 21:26:01 +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: Thorsten Cc: emacs-orgmode@gnu.org 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. 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? --