From 0ceb68d59931531db78b2b0c71b6b4a0050a682a Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Sun, 9 Feb 2014 14:54:12 +0100 Subject: [PATCH] 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. --- lisp/org-src.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-src.el b/lisp/org-src.el index b8d7c672b..6ded5e602 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.