forked from mirrors/org-mode
ob-comint: Fix org-babel-comint-in-buffer
* lisp/ob-comint.el (org-babel-comint-in-buffer): Fix bug. The function’s docstring says it wraps BODY in ‘save-excursion’, but in fact it did not.
This commit is contained in:
parent
d350baf2db
commit
1509906e29
|
@ -51,8 +51,9 @@ executed inside the protection of `save-excursion' and
|
|||
(error "Buffer %s does not exist or has no process" ,buffer))
|
||||
(save-match-data
|
||||
(with-current-buffer ,buffer
|
||||
(let ((comint-input-filter (lambda (_input) nil)))
|
||||
,@body)))))
|
||||
(save-excursion
|
||||
(let ((comint-input-filter (lambda (_input) nil)))
|
||||
,@body))))))
|
||||
(def-edebug-spec org-babel-comint-in-buffer (form body))
|
||||
|
||||
(defmacro org-babel-comint-with-output (meta &rest body)
|
||||
|
|
Loading…
Reference in New Issue