2000-08-12 Miles Bader <miles@gnu.org>
+
+ * comint.el (comint-output-filter): Don't bother frobbing
+ window-start, it doesn't seem to be necessary.
* comint.el (comint-send-string, comint-send-region): Make into
real functions. Snapshot the prompt before sending.
;; Highlight the prompt, where we define `prompt' to mean
;; the most recent output that doesn't end with a newline.
(unless (and (bolp) (null comint-last-prompt-overlay))
- ;; Need to create or move the prompt overlay (in the
- ;; case where's no prompt ((bolp) == t), we still do
- ;; this if there's already an existing overlay.
+ ;; Need to create or move the prompt overlay (in the case
+ ;; where there is no prompt ((bolp) == t), we still do
+ ;; this if there's already an existing overlay).
(let ((prompt-start (save-excursion (forward-line 0) (point))))
(if comint-last-prompt-overlay
;; Just move an existing overlay
(overlay-put comint-last-prompt-overlay
'face 'comint-highlight-prompt-face)))))
- ;; Don't insert initial prompt outside the top of the window.
- (if (= (window-start (selected-window)) (point))
- (set-window-start (selected-window) (- (point) (length string))))
(if (and comint-last-input-end
(marker-buffer comint-last-input-end)
(= (point) comint-last-input-end))