summaryrefslogtreecommitdiff
path: root/lisp/comint.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2000-10-18 01:43:01 +0000
committerMiles Bader <miles@gnu.org>2000-10-18 01:43:01 +0000
commit1e317a4a3e28d1a425c41bf5d934e43832044767 (patch)
tree87eef2b21e41b03a23b1fc8e52a964b4386a668e /lisp/comint.el
parentfa00d3b617d9e8889066bb34b92c13872c678c2f (diff)
downloademacs-1e317a4a3e28d1a425c41bf5d934e43832044767.tar.gz
(comint-output-filter):
Fixup comint-last-input-end too. Remove commented-out call to force-mode-line-update. (comint-kill-output): Use `forward-line 0' instead of beginning-of-line to make sure we get past the prompt.
Diffstat (limited to 'lisp/comint.el')
-rw-r--r--lisp/comint.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index 13b562bdf4a..dbcd6683fdf 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -1517,8 +1517,13 @@ This variable is permanent-local.")
;; Fixup markers and overlays that got screwed up because we
;; used `insert-before-markers'.
(let ((old-point (- (point) (length string))))
- ;; comint-last-output-start marker
+ ;; comint-last-output-start
(set-marker comint-last-output-start old-point)
+ ;; comint-last-input-end
+ (when (and comint-last-input-end
+ (equal (marker-position comint-last-input-end)
+ (point)))
+ (set-marker comint-last-input-end old-point))
;; No overlays we create are set to advance upon insertion
;; (at the start/end), so we assume that any overlay which
;; is at the current point was incorrectly advanced by
@@ -1579,8 +1584,6 @@ This variable is permanent-local.")
(overlay-put over 'rear-nonsticky t)
(setq comint-last-prompt-overlay over))))))
- ;;(force-mode-line-update)
-
(goto-char saved-point)
(run-hook-with-args 'comint-output-filter-functions string)))))))
@@ -1875,7 +1878,7 @@ Does not delete the prompt."
(replacement nil))
(save-excursion
(let ((pmark (progn (goto-char (process-mark proc))
- (beginning-of-line nil)
+ (forward-line 0)
(point-marker))))
(delete-region comint-last-input-end pmark)
(goto-char (process-mark proc))