babel: eval-when-compile for 'cl in more babel files

This commit is contained in:
Eric Schulte 2010-06-12 18:32:23 -07:00
parent 6fa2ab7eac
commit 0dabebc444
3 changed files with 10 additions and 2 deletions

View File

@ -31,11 +31,15 @@
;;; Code: ;;; Code:
(require 'ob) (require 'ob)
(require 'org-exp-blocks) (require 'org-exp-blocks)
(org-export-blocks-add-block '(src org-babel-exp-src-blocks nil)) (eval-when-compile
(require 'cl))
(add-to-list 'org-export-interblocks '(src org-babel-exp-inline-src-blocks)) (add-to-list 'org-export-interblocks '(src org-babel-exp-inline-src-blocks))
(add-to-list 'org-export-interblocks '(lob org-babel-exp-lob-one-liners)) (add-to-list 'org-export-interblocks '(lob org-babel-exp-lob-one-liners))
(add-hook 'org-export-blocks-postblock-hook 'org-exp-res/src-name-cleanup) (add-hook 'org-export-blocks-postblock-hook 'org-exp-res/src-name-cleanup)
(org-export-blocks-add-block '(src org-babel-exp-src-blocks nil))
(defvar org-babel-function-def-export-keyword "function" (defvar org-babel-function-def-export-keyword "function"
"When exporting a source block function, this keyword will "When exporting a source block function, this keyword will
appear in the exported version in the place of source name appear in the exported version in the place of source name
@ -201,7 +205,7 @@ evaluated."
(name (nth 4 info)) (name (nth 4 info))
(args (mapcar (args (mapcar
#'cdr #'cdr
(remove-if-not (lambda (el) (eq :var (car el))) (nth 2 info))))) (org-remove-if-not (lambda (el) (eq :var (car el))) (nth 2 info)))))
(case type (case type
('inline (format "=%s=" body)) ('inline (format "=%s=" body))
('block ('block

View File

@ -53,6 +53,8 @@
;;; Code: ;;; Code:
(require 'ob) (require 'ob)
(eval-when-compile
(require 'cl))
(defun org-babel-ref-variables (params) (defun org-babel-ref-variables (params)
"Takes a parameter alist, and return an alist of variable "Takes a parameter alist, and return an alist of variable

View File

@ -30,6 +30,8 @@
;;; Code: ;;; Code:
(require 'ob) (require 'ob)
(eval-when-compile
(require 'cl))
(declare-function org-babel-get-src-block-info "ob" (&optional header-vars-only)) (declare-function org-babel-get-src-block-info "ob" (&optional header-vars-only))