Re: [O] [contacts] No completion in Gnus

2011-10-05 Thread Achim Gratz
Thorsten quintf...@googlemail.com writes:
 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?

The current release version for Emacs is 23.3.

I've switched to Emacs24 about half a year ago (they are just now going
into pre-test, so things should stabilize) and it has been smooth
sailing for me, but I'd recommend to keep the 23.3 version around as a
fallback.  There are quite a few changes vs. Emacs23 that you may have
to think about, read the NEWS file.  I've compiled Emacs24 myself (from
Git), most pre-compiled packages represent a much older state from the
beginning of this year.  I've backed out a dodgy change once or twice
and this is so much easier to do in Git; even though there would have
been other workarounds.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Waldorf MIDI Implementation  additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs




Re: [O] [contacts] No completion in Gnus

2011-10-05 Thread Julien Danjou
On Wed, Oct 05 2011, Jason Dunsmore wrote:

 Is there anything else I'm missing?

Are you using Emacs 24?

-- 
Julien Danjou


pgpIQEexbS42M.pgp
Description: PGP signature


Re: [O] [contacts] No completion in Gnus

2011-10-05 Thread jasondunsmore
Julien Danjou jul...@danjou.info writes:

 On Wed, Oct 05 2011, Jason Dunsmore wrote:

 Is there anything else I'm missing?

 Are you using Emacs 24?

I'm running Emacs 23.2.1.  Does it require Emacs 24?



Re: [O] [contacts] No completion in Gnus

2011-10-05 Thread Jason Dunsmore
I'm trying to get org-contacts completion working using Jambunathan's
instructions...

Jambunathan K kjambunat...@gmail.com writes:

 In such cases, typically there is an insinuate function. Yes, there is
 one

 (org-contacts-gnus-insinuate)

I've added this function to my config and I'm still not seeing email
address completion in Gnus.

When I do an M-x org-contacts search for one of my contacts, I get the
expected results.

 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.

My completion-at-point-functions's value is
(org-contacts-message-complete-function)

 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)

When I do this, I see:

(5 8 (lambda (rest --cl-rest--) (apply #[... ÃÄJ
\\‡ [G73503 G73502 args2 apply append] 5] (quote --args1--) (quote --fun--) 
--cl-rest--)))

Is there anything else I'm missing?

Thanks,
Jason



Re: [O] [contacts] No completion in Gnus

2011-10-05 Thread Thorsten
Achim Gratz strom...@nexgo.de writes:

 The current release version for Emacs is 23.3.

 I've switched to Emacs24 about half a year ago (they are just now going
 into pre-test, so things should stabilize) and it has been smooth
 sailing for me, but I'd recommend to keep the 23.3 version around as a
 fallback.  There are quite a few changes vs. Emacs23 that you may have
 to think about, read the NEWS file.  I've compiled Emacs24 myself (from
 Git), most pre-compiled packages represent a much older state from the
 beginning of this year.  I've backed out a dodgy change once or twice
 and this is so much easier to do in Git; even though there would have
 been other workarounds.

Since I always expect unexpected things to happen when upgrading, I
would rather go directly to Emacs 24 when its more or less stable
already - and thats what it seems to be.

I might use the opportunity to change from 32bit to 64bit, from Ubuntu
to Arch Linux (which looks good) and from Gnome to Stump-WM. That looks
like a nice combination to me. 

Cheers
-- 
Thorsten




Re: [O] [contacts] No completion in Gnus

2011-10-04 Thread Jambunathan K
Thorsten quintf...@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.

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? 

-- 



Re: [O] [contacts] No completion in Gnus

2011-10-04 Thread Thorsten
Jambunathan K kjambunat...@gmail.com writes:

 Thorsten quintf...@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