From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frank Terbeck Subject: org-capture with org-contacts template causing problems Date: Sun, 03 Mar 2013 18:40:33 +0100 Message-ID: <87vc98fkku.fsf@ft.bewatermyfriend.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCDH6-0005nl-4l for emacs-orgmode@gnu.org; Sun, 03 Mar 2013 13:04:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCDH4-0007va-KB for emacs-orgmode@gnu.org; Sun, 03 Mar 2013 13:04:40 -0500 Received: from smtprelay03.ispgateway.de ([80.67.31.37]:33948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCDH4-0007vK-Ei for emacs-orgmode@gnu.org; Sun, 03 Mar 2013 13:04:38 -0500 Received: from [82.140.54.179] (helo=jim.voodoo.lan) by smtprelay03.ispgateway.de with esmtp (Exim 4.68) (envelope-from ) id 1UCDH2-00031v-R8 for emacs-orgmode@gnu.org; Sun, 03 Mar 2013 19:04:36 +0100 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: emacs-orgmode@gnu.org 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