mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-26 07:33:39 +00:00
org-babel-eval: compilation-mode to deal with errors in (C/C++/D)
This commit is contained in:
parent
92aeca04b2
commit
e4e80bfa33
@ -57,6 +57,12 @@ STDERR with `org-babel-eval-error-notify'."
|
||||
(progn
|
||||
(with-current-buffer err-buff
|
||||
(org-babel-eval-error-notify exit-code (buffer-string)))
|
||||
(save-excursion
|
||||
(when (get-buffer org-babel-error-buffer-name)
|
||||
(with-current-buffer org-babel-error-buffer-name
|
||||
(compilation-mode)
|
||||
;;compilation-mode enforces read-only
|
||||
(read-only-mode 0))))
|
||||
nil)
|
||||
(buffer-string)))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user