0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 19:37:52 +00:00

ob-sass: uses ob-eval for better error reporting

* lisp/ob-sass.el (org-babel-execute:sass): Uses ob-eval for better
  error reporting.
This commit is contained in:
Eric Schulte 2010-12-21 20:17:18 -07:00
parent 9c4b936c0e
commit 9bf88fddfc

View file

@ -40,6 +40,7 @@
;;; Code:
(require 'ob)
(require 'ob-eval)
(defvar org-babel-default-header-args:sass '())
@ -55,7 +56,8 @@ This function is called by `org-babel-execute-src-block'."
" " (org-babel-process-file-name in-file)
" " (org-babel-process-file-name out-file))))
(with-temp-file in-file
(insert (org-babel-expand-body:generic body params))) (shell-command cmd)
(insert (org-babel-expand-body:generic body params)))
(org-babel-eval cmd "")
(if file
nil ;; signal that output has already been written to file
(with-temp-buffer (insert-file-contents out-file) (buffer-string)))))