1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-01 08:17:34 +00:00

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.
This commit is contained in:
Deech 2011-07-04 14:42:03 -05:00 committed by Eric Schulte
parent c22c904718
commit 5a5036cc13

View File

@ -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)))