1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-21 06:55:35 +00:00

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:
(require 'ob)
(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 '(lob org-babel-exp-lob-one-liners))
(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"
"When exporting a source block function, this keyword will
appear in the exported version in the place of source name
@ -201,7 +205,7 @@ evaluated."
(name (nth 4 info))
(args (mapcar
#'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
('inline (format "=%s=" body))
('block

View File

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

View File

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