Re: [O] [contacts] No completion in Gnus
On 5 Oct 2011, jasondunsm...@gmail.com wrote: > Julien Danjou 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? As Julien said: It does require Emacs 24. But you can bind `org-contacts-message-complete-function' directly to a key (You need to wrap it though) and bypass `completion-at-point-functions': #+begin_src emacs-lisp (add-to-hook 'message-mode-hook (lambda () (local-set-key (kbd "TAB") (lambda () (interactive) (org-contacts-message-complete-function) #+end_src Michael pgpCeA28sBYjT.pgp Description: PGP signature
Re: [O] [contacts] No completion in Gnus
Achim Gratz 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
I'm trying to get org-contacts completion working using Jambunathan's instructions... Jambunathan K 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
On Wed, Oct 05 2011, jasondunsm...@gmail.com wrote: > I'm running Emacs 23.2.1. Does it require Emacs 24? Yes. -- Julien Danjou pgpmV63zb1sbI.pgp Description: PGP signature
Re: [O] [contacts] No completion in Gnus
Julien Danjou 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
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
Thorsten 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
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
Re: [O] [contacts] No completion in Gnus
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? --
[O] [contacts] No completion in Gnus
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. 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? -- Thorsten