mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 21:37:34 +00:00
(comint-output-filter): Don't bother frobbing window-start, it doesn't
seem to be necessary.
This commit is contained in:
parent
79e8dca7df
commit
660394d1fb
2 changed files with 6 additions and 6 deletions
|
|
@ -1,4 +1,7 @@
|
|||
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.
|
||||
|
|
|
|||
|
|
@ -1538,9 +1538,9 @@ This variable is permanent-local.")
|
|||
;; 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
|
||||
|
|
@ -1554,9 +1554,6 @@ This variable is permanent-local.")
|
|||
(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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue