mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
(comint-send-input): Update markers before actually sending the input.
This commit is contained in:
parent
eb16ec06bb
commit
dcdc526cc3
1 changed files with 3 additions and 1 deletions
|
|
@ -1137,11 +1137,13 @@ Similarly for Soar, Scheme, etc."
|
|||
(while functions
|
||||
(funcall (car functions) (concat input "\n"))
|
||||
(setq functions (cdr functions))))
|
||||
(funcall comint-input-sender proc input)
|
||||
(setq comint-input-ring-index nil)
|
||||
;; Update the markers before we send the input
|
||||
;; in case we get output amidst sending the input.
|
||||
(set-marker comint-last-input-start pmark)
|
||||
(set-marker comint-last-input-end (point))
|
||||
(set-marker (process-mark proc) (point))
|
||||
(funcall comint-input-sender proc input)
|
||||
(comint-output-filter proc "")))))
|
||||
|
||||
;; The purpose of using this filter for comint processes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue