From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frank Terbeck Subject: Re: org-capture with org-contacts template causing problems Date: Mon, 04 Mar 2013 11:40:15 +0100 Message-ID: <8762171m9c.fsf@ft.bewatermyfriend.org> References: <87vc98fkku.fsf@ft.bewatermyfriend.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCSoT-0006lT-O0 for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 05:40:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCSoR-0007Hp-Vy for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 05:40:09 -0500 Received: from smtprelay02.ispgateway.de ([80.67.18.44]:55987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCSoR-0007H5-NQ for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 05:40:07 -0500 Received: from [82.140.54.179] (helo=jim.voodoo.lan) by smtprelay02.ispgateway.de with esmtp (Exim 4.68) (envelope-from ) id 1UCSoQ-0000WD-Cw for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 11:40:06 +0100 In-Reply-To: <87vc98fkku.fsf@ft.bewatermyfriend.org> (Frank Terbeck's message of "Sun, 03 Mar 2013 18:40:33 +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 Frank Terbeck wrote: [...] > 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: [...] Turns out, this problem is triggered when I byte-compile org-contacts.el inside my .emacs.d directory. The compilation process yields the following warnings: Compiling /home/hawk/.emacs.d/vendor/org-contacts.el... In org-contacts-db-need-update-p: vendor/org-contacts.el:169:14:Warning: function `some' from cl package called at runtime In org-contacts-filter: vendor/org-contacts.el:211:37:Warning: function `some' from cl package called at runtime In org-contacts-test-completion-prefix: vendor/org-contacts.el:373:12:Warning: function `find-if' from cl package called at runtime In org-contacts-complete-name: vendor/org-contacts.el:445:71:Warning: function `remove-duplicates' from cl package called at runtime In org-contacts-gnus-insinuate: vendor/org-contacts.el:646:15:Warning: reference to free variable `gnus-summary-mode-map' In end of data: vendor/org-contacts.el:870:1:Warning: the following functions might not be defined at runtime: some, find-if, remove-duplicates vendor/org-contacts.el:870:1:Warning: the following functions are not known to be defined: org-reverse-string, mail-abbrev-in-expansion-header-p, gnus-with-article-headers, diary-ordinal-suffix, gnus-with-article-buffer, elmo-message-field, std11-narrow-to-header, std11-fetch-field, erc-get-channel-user-list, org-install-letbind, google-maps-static-show Wrote /home/hawk/.emacs.d/vendor/org-contacts.elc `org-capture' with the `org-contacts' template works fine if I move the corresponding .elc file out of the way. My guess is, that there are a few `requires' missing in the `eval-and-compile' form on top of `org-contacts.el'. Maybe someone with more intimate knowledge of the involved code than myself has an idea as to how to fix this? Regards, Frank