瀏覽代碼

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
Eric Schulte 14 年之前
父節點
當前提交
05b7ea5035
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lisp/babel/ob.el

+ 3 - 1
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" ())