aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-06-25 22:27:06 +0000
committerRichard M. Stallman1994-06-25 22:27:06 +0000
commitdcdc526cc3fb50399ee82bc9f1f6cd78fb06b7c5 (patch)
tree0e3a422dab4d7938947d54d59afc24954c889059
parenteb16ec06bbd73d1c2059e048cd385301e5510b68 (diff)
downloademacs-dcdc526cc3fb50399ee82bc9f1f6cd78fb06b7c5.tar.gz
emacs-dcdc526cc3fb50399ee82bc9f1f6cd78fb06b7c5.zip
(comint-send-input): Update markers before actually sending the input.
-rw-r--r--lisp/comint.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index 010889678ff..3a343303598 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -1137,11 +1137,13 @@ Similarly for Soar, Scheme, etc."
1137 (while functions 1137 (while functions
1138 (funcall (car functions) (concat input "\n")) 1138 (funcall (car functions) (concat input "\n"))
1139 (setq functions (cdr functions)))) 1139 (setq functions (cdr functions))))
1140 (funcall comint-input-sender proc input)
1141 (setq comint-input-ring-index nil) 1140 (setq comint-input-ring-index nil)
1141 ;; Update the markers before we send the input
1142 ;; in case we get output amidst sending the input.
1142 (set-marker comint-last-input-start pmark) 1143 (set-marker comint-last-input-start pmark)
1143 (set-marker comint-last-input-end (point)) 1144 (set-marker comint-last-input-end (point))
1144 (set-marker (process-mark proc) (point)) 1145 (set-marker (process-mark proc) (point))
1146 (funcall comint-input-sender proc input)
1145 (comint-output-filter proc ""))))) 1147 (comint-output-filter proc "")))))
1146 1148
1147;; The purpose of using this filter for comint processes 1149;; The purpose of using this filter for comint processes