|
@@ -175,7 +175,13 @@ Emacs-lisp table, otherwise return the results as a string."
|
|
(when (and session (not (string= session "none")))
|
|
(when (and session (not (string= session "none")))
|
|
(save-window-excursion
|
|
(save-window-excursion
|
|
(or (org-babel-comint-buffer-livep session)
|
|
(or (org-babel-comint-buffer-livep session)
|
|
- (progn (shell session) (get-buffer (current-buffer)))))))
|
|
|
|
|
|
+ (progn
|
|
|
|
+ (shell session)
|
|
|
|
+ ; Needed for Emacs 23 since the marker is initially
|
|
|
|
+ ; undefined and the filter functions try to use it without
|
|
|
|
+ ; checking.
|
|
|
|
+ (set-mark comint-last-output-start (point))
|
|
|
|
+ (get-buffer (current-buffer)))))))
|
|
|
|
|
|
(defvar org-babel-sh-eoe-indicator "echo 'org_babel_sh_eoe'"
|
|
(defvar org-babel-sh-eoe-indicator "echo 'org_babel_sh_eoe'"
|
|
"String to indicate that evaluation has completed.")
|
|
"String to indicate that evaluation has completed.")
|