From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frank Terbeck Subject: [PATCH] Make `org-contacts-message-complete-function' work with byte compilation Date: Sun, 10 Mar 2013 02:25:08 +0100 Message-ID: <87sj449hcb.fsf@ft.bewatermyfriend.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEV0V-0006FW-V8 for emacs-orgmode@gnu.org; Sat, 09 Mar 2013 20:25:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UEV0U-0006Ms-Tx for emacs-orgmode@gnu.org; Sat, 09 Mar 2013 20:24:59 -0500 Received: from smtprelay04.ispgateway.de ([80.67.31.38]:55653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEV0U-0006KI-OE for emacs-orgmode@gnu.org; Sat, 09 Mar 2013 20:24:58 -0500 Received: from [46.183.97.139] (helo=jim.voodoo.lan) by smtprelay04.ispgateway.de with esmtp (Exim 4.68) (envelope-from ) id 1UEV0S-00013n-4Q for emacs-orgmode@gnu.org; Sun, 10 Mar 2013 02:24:56 +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 Without this patch (when I am _byte-compiling_ org-contacts.el), I am getting error messages like this (when attempting address completion via `completion-at-point' and `org-contacts-message-complete-function'): Symbol's function definition is void: remove-duplicates Symbol's function definition is void: some With this patch, it seems to be working as expected. --- Disclaimer: I'm no Elisp expert. Maybe this should be solved differently. contrib/lisp/org-contacts.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contrib/lisp/org-contacts.el b/contrib/lisp/org-contacts.el index ab44a7b..ac5ff6d 100644 --- a/contrib/lisp/org-contacts.el +++ b/contrib/lisp/org-contacts.el @@ -36,10 +36,8 @@ ;; ;;; Code: -(eval-when-compile - (require 'cl)) - (eval-and-compile + (require 'cl) (require 'org)) (require 'gnus-util) (require 'gnus-art) -- 1.8.2.rc1