Browse Source

ob-shen: fix build error

* lisp/ob-shen.el (shen-eval-defun): Declare external function.
  (org-babel-execute:shen): Move requirement of inf-shen into the
  function in which it is used to fix build error.
Eric Schulte 8 years ago
parent
commit
623dd10c96
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lisp/ob-shen.el

+ 3 - 1
lisp/ob-shen.el

@@ -34,7 +34,8 @@
 
 ;;; Code:
 (require 'ob)
-(require 'inf-shen)
+
+(declare-function shen-eval-defun "ext:inf-shen" (&optional and-go))
 
 (defvar org-babel-default-header-args:shen '()
   "Default header arguments for shen code blocks.")
@@ -60,6 +61,7 @@
 (defun org-babel-execute:shen (body params)
   "Execute a block of Shen code with org-babel.
 This function is called by `org-babel-execute-src-block'"
+  (require 'inf-shen)
   (let* ((result-type (cdr (assoc :result-type params)))
          (full-body (org-babel-expand-body:shen body params)))
     ((lambda (results)