summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2014-02-09 14:54:12 +0100
committerBastien Guerry <bzg@altern.org>2014-02-09 14:54:12 +0100
commit0ceb68d59931531db78b2b0c71b6b4a0050a682a (patch)
tree7c45467f24f79e9dda74638df4ff7496f14e8f27
parent87b48e5a28249c24bd42a59d3ebbdca221ebd213 (diff)
downloadorg-mode-0ceb68d59931531db78b2b0c71b6b4a0050a682a.tar.gz
org-src.el (org-edit-src-code): Throw a warning instead of an error
* org-src.el (org-edit-src-code): Throw a warning instead of an error when loading the mode fails, otherwise the user is left with unusable buffers. Thanks to Florian Beck for suggesting this.
-rw-r--r--lisp/org-src.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-src.el b/lisp/org-src.el
index b8d7c67..6ded5e6 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -348,7 +348,7 @@ the display of windows containing the Org buffer and the code buffer."
(condition-case e
(funcall lang-f)
(error
- (error "Language mode `%s' fails with: %S" lang-f (nth 1 e)))))
+ (message "Language mode `%s' fails with: %S" lang-f (nth 1 e)))))
(dolist (pair transmitted-variables)
(org-set-local (car pair) (cadr pair)))
;; Remove protecting commas from visible part of buffer.