From 05b7ea50354af98b4852d20a298b4aa874143037 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sun, 27 Jun 2010 23:10:53 -0700 Subject: [PATCH] babel: ensure `declare-function' is available in all Emacsen Thanks to Daniel Mahler for finding this problem and proposing the fix * lisp/babel/ob.el (unless): ensure `declare-function' is available in all Emacsen --- lisp/babel/ob.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/babel/ob.el b/lisp/babel/ob.el index 7da15f7ed..5a1089e5a 100644 --- a/lisp/babel/ob.el +++ b/lisp/babel/ob.el @@ -30,7 +30,9 @@ ;;; Code: (eval-when-compile (require 'cl)) -(require 'outline) +(eval-and-compile + (unless (fboundp 'declare-function) + (defmacro declare-function (fn file &optional arglist fileonly)))) (defvar org-babel-call-process-region-original) (declare-function show-all "outline" ())