summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeech <deech@deech-ThinkPad-X200.(none)>2011-07-04 14:42:03 -0500
committerEric Schulte <schulte.eric@gmail.com>2011-07-04 15:00:17 -0600
commit5a5036cc131df6d3636569ca920772f58da0a19e (patch)
treefe20d54a199352243e9db6351f5b5c056f620c23
parentc22c904718db901d90bd7f97034f73f9453ef288 (diff)
downloadorg-mode-5a5036cc131df6d3636569ca920772f58da0a19e.tar.gz
Ignore errors when launching a language's mode when tangling a source block.
The lua-mode for instance was throwing errors that killed the tangling process. * lisp/ob-tangle.el (org-babel-tangle): Ignore errors thrown by language modes.
-rw-r--r--lisp/ob-tangle.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el
index 7b089f6..5acacc2 100644
--- a/lisp/ob-tangle.el
+++ b/lisp/ob-tangle.el
@@ -230,7 +230,7 @@ exported source code blocks by language."
(delete-file file-name))
;; drop source-block to file
(with-temp-buffer
- (when (fboundp lang-f) (funcall lang-f))
+ (when (fboundp lang-f) (ignore-errors (funcall lang-f)))
(when (and she-bang (not (member file-name she-banged)))
(insert (concat she-bang "\n"))
(setq she-banged (cons file-name she-banged)))