emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-capture with org-contacts template causing problems
@ 2013-03-03 17:40 Frank Terbeck
  2013-03-04 10:40 ` Frank Terbeck
  0 siblings, 1 reply; 4+ messages in thread
From: Frank Terbeck @ 2013-03-03 17:40 UTC (permalink / raw)
  To: emacs-orgmode

Good day!

So, I tried giving org-contacts another go.

For capturing new contacts, I have this template configured (based on
the example on org-contacts.el):

#+begin_src elisp
(add-to-list 'org-capture-templates
  '("c" "Contacts" entry (file "~/org/contacts.org")
                              "
** %(org-contacts-template-name)
:PROPERTIES:
:EMAIL: %(org-contacts-template-email)
:END:"))
#+end_src

When using `org-capture' (and then selecting "c" in the menu window), I
get the following error message in the "CAPTURE-contacts.org" buffer:

* %![Error: (invalid-function gnus-with-article-headers)]
:PROPERTIES:
:EMAIL: %![Error: (invalid-function gnus-with-article-headers)]
:END:

The following however works from the `*scratch*' buffer:

#+begin_src elisp
(gnus-with-article-headers
  (mail-fetch-field "From"))
#+end_src

This is with an emacs snapshot, M-x version:
GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of
2013-03-01 on jim, modified by Debian

M-x org-version:
Org-mode version 7.9.3e (7.9.3e-3-gb07a9b @ /usr/share/emacs/24.3.50/lisp/org/)

This is with `org-contacts.el' from org-mode's git HEAD.

I'm unsure about how to debug this. Any pointers welcome.

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-04 19:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-03 17:40 org-capture with org-contacts template causing problems Frank Terbeck
2013-03-04 10:40 ` Frank Terbeck
2013-03-04 13:12   ` Frank Terbeck
2013-03-04 19:42     ` Bastien

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).