emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten <quintfall@googlemail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [contacts] No completion in Gnus
Date: Tue, 04 Oct 2011 22:31:10 +0200	[thread overview]
Message-ID: <86ipo4bisx.fsf@googlemail.com> (raw)
In-Reply-To: 81ehysplrb.fsf@gmail.com

Jambunathan K <kjambunathan@gmail.com> writes:

> Thorsten <quintfall@googlemail.com> 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 <TAB> 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

  reply	other threads:[~2011-10-04 20:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-04 19:26 [contacts] No completion in Gnus Thorsten
2011-10-04 20:03 ` Jambunathan K
2011-10-04 20:31   ` Thorsten [this message]
2011-10-05  7:20     ` Achim Gratz
2011-10-05 15:20       ` Thorsten
2011-10-05 14:44   ` Jason Dunsmore
2011-10-05 14:51     ` Julien Danjou
2011-10-05 15:03       ` jasondunsmore
2011-10-05 15:12         ` Julien Danjou
2011-10-05 15:35         ` Michael Markert
2011-10-05 16:20 ` org-contacts: how to manage contacts; structure of meta data (was: No completion in Gnus) Karl Voit
2011-10-05 20:48   ` Thorsten
2011-10-06  9:38     ` org-contacts: how to manage contacts; structure of meta data Karl Voit
2011-10-06 12:55       ` Thorsten
2011-10-06 14:20       ` Wes Hardaker
2011-10-06 14:53         ` Thorsten

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://www.orgmode.org/

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

  git send-email \
    --in-reply-to=86ipo4bisx.fsf@googlemail.com \
    --to=quintfall@googlemail.com \
    --cc=emacs-orgmode@gnu.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://git.savannah.gnu.org/cgit/emacs/org-mode.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).