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
This commit is contained in:
Eric Schulte 2010-06-27 23:10:53 -07:00
parent 2653b62c47
commit 05b7ea5035
1 changed files with 3 additions and 1 deletions

View File

@ -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" ())