mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-20 22:48:38 +00:00
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.
This commit is contained in:
parent
87b48e5a28
commit
0ceb68d599
|
@ -348,7 +348,7 @@ the display of windows containing the Org buffer and the code buffer."
|
||||||
(condition-case e
|
(condition-case e
|
||||||
(funcall lang-f)
|
(funcall lang-f)
|
||||||
(error
|
(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)
|
(dolist (pair transmitted-variables)
|
||||||
(org-set-local (car pair) (cadr pair)))
|
(org-set-local (car pair) (cadr pair)))
|
||||||
;; Remove protecting commas from visible part of buffer.
|
;; Remove protecting commas from visible part of buffer.
|
||||||
|
|
Loading…
Reference in a new issue