Hi all,
I was running into an issue where "lua-mode" would throw an error that
stopped "org-babel-tangle" function in "ob-tangle.el". I have patched
"org-babel-tangle" to ignore errors thrown by invoking any language's
mode. The patch is attached.

-deech
From 2093523c672b83d53d9eca3680cb10682784dfaf Mon Sep 17 00:00:00 2001
From: Deech <deech@deech-ThinkPad-X200.(none)>
Date: Mon, 4 Jul 2011 14:42:03 -0500
Subject: [PATCH 2/2] 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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el
index 723fba1..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) (ignore-errors (message "hello") (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)))
-- 
1.7.4.1

Reply via email to