aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2000-10-18 01:43:01 +0000
committerMiles Bader2000-10-18 01:43:01 +0000
commit1e317a4a3e28d1a425c41bf5d934e43832044767 (patch)
tree87eef2b21e41b03a23b1fc8e52a964b4386a668e
parentfa00d3b617d9e8889066bb34b92c13872c678c2f (diff)
downloademacs-1e317a4a3e28d1a425c41bf5d934e43832044767.tar.gz
emacs-1e317a4a3e28d1a425c41bf5d934e43832044767.zip
(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.
-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.")
1517 ;; Fixup markers and overlays that got screwed up because we 1517 ;; Fixup markers and overlays that got screwed up because we
1518 ;; used `insert-before-markers'. 1518 ;; used `insert-before-markers'.
1519 (let ((old-point (- (point) (length string)))) 1519 (let ((old-point (- (point) (length string))))
1520 ;; comint-last-output-start marker 1520 ;; comint-last-output-start
1521 (set-marker comint-last-output-start old-point) 1521 (set-marker comint-last-output-start old-point)
1522 ;; comint-last-input-end
1523 (when (and comint-last-input-end
1524 (equal (marker-position comint-last-input-end)
1525 (point)))
1526 (set-marker comint-last-input-end old-point))
1522 ;; No overlays we create are set to advance upon insertion 1527 ;; No overlays we create are set to advance upon insertion
1523 ;; (at the start/end), so we assume that any overlay which 1528 ;; (at the start/end), so we assume that any overlay which
1524 ;; is at the current point was incorrectly advanced by 1529 ;; is at the current point was incorrectly advanced by
@@ -1579,8 +1584,6 @@ This variable is permanent-local.")
1579 (overlay-put over 'rear-nonsticky t) 1584 (overlay-put over 'rear-nonsticky t)
1580 (setq comint-last-prompt-overlay over)))))) 1585 (setq comint-last-prompt-overlay over))))))
1581 1586
1582 ;;(force-mode-line-update)
1583
1584 (goto-char saved-point) 1587 (goto-char saved-point)
1585 1588
1586 (run-hook-with-args 'comint-output-filter-functions string))))))) 1589 (run-hook-with-args 'comint-output-filter-functions string)))))))
@@ -1875,7 +1878,7 @@ Does not delete the prompt."
1875 (replacement nil)) 1878 (replacement nil))
1876 (save-excursion 1879 (save-excursion
1877 (let ((pmark (progn (goto-char (process-mark proc)) 1880 (let ((pmark (progn (goto-char (process-mark proc))
1878 (beginning-of-line nil) 1881 (forward-line 0)
1879 (point-marker)))) 1882 (point-marker))))
1880 (delete-region comint-last-input-end pmark) 1883 (delete-region comint-last-input-end pmark)
1881 (goto-char (process-mark proc)) 1884 (goto-char (process-mark proc))