aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMiles Bader2000-10-25 05:21:54 +0000
committerMiles Bader2000-10-25 05:21:54 +0000
commitc7c800d8d101691f2028ba78fc80a98adfe4500b (patch)
treeac9d137f8c614b1cd3776664663c2196e24ec72e /lisp
parent7ae1c032031cde96d276c7f3b785e5ce5d0fb6fb (diff)
downloademacs-c7c800d8d101691f2028ba78fc80a98adfe4500b.tar.gz
emacs-c7c800d8d101691f2028ba78fc80a98adfe4500b.zip
(comint-output-filter, comint-send-input):
Don't bother adding stickiness fields to overlays to fool the field code, since it should notice the overlay insertion-types now.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/comint.el15
1 files changed, 5 insertions, 10 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index a48dd1e7ce3..a3cc276c0aa 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -1411,8 +1411,7 @@ Similarly for Soar, Scheme, etc."
1411 ;; input. The terminating newline is put into a special 1411 ;; input. The terminating newline is put into a special
1412 ;; `boundary' field to make cursor movement between input 1412 ;; `boundary' field to make cursor movement between input
1413 ;; and output fields smoother. 1413 ;; and output fields smoother.
1414 (overlay-put over 'field 'input) 1414 (overlay-put over 'field 'input))
1415 (overlay-put over 'front-sticky t))
1416 (when comint-highlight-input 1415 (when comint-highlight-input
1417 (overlay-put over 'face 'comint-highlight-input) 1416 (overlay-put over 'face 'comint-highlight-input)
1418 (overlay-put over 'mouse-face 'highlight) 1417 (overlay-put over 'mouse-face 'highlight)
@@ -1421,7 +1420,6 @@ Similarly for Soar, Scheme, etc."
1421 ;; Make an overlay for the terminating newline 1420 ;; Make an overlay for the terminating newline
1422 (let ((over (make-overlay end (1+ end) nil t nil))) 1421 (let ((over (make-overlay end (1+ end) nil t nil)))
1423 (overlay-put over 'field 'boundary) 1422 (overlay-put over 'field 'boundary)
1424 (overlay-put over 'rear-nonsticky t)
1425 (overlay-put over 'evaporate t)))) 1423 (overlay-put over 'evaporate t))))
1426 1424
1427 (comint-snapshot-last-prompt) 1425 (comint-snapshot-last-prompt)
@@ -1563,8 +1561,6 @@ This variable is permanent-local.")
1563 (let ((over (make-overlay comint-last-output-start (point)))) 1561 (let ((over (make-overlay comint-last-output-start (point))))
1564 (overlay-put over 'field 'output) 1562 (overlay-put over 'field 'output)
1565 (overlay-put over 'inhibit-line-move-field-capture t) 1563 (overlay-put over 'inhibit-line-move-field-capture t)
1566 (overlay-put over 'front-sticky t)
1567 (overlay-put over 'rear-nonsticky t)
1568 (overlay-put over 'evaporate t) 1564 (overlay-put over 'evaporate t)
1569 (setq comint-last-output-overlay over)))) 1565 (setq comint-last-output-overlay over))))
1570 1566
@@ -1581,11 +1577,10 @@ This variable is permanent-local.")
1581 (move-overlay comint-last-prompt-overlay 1577 (move-overlay comint-last-prompt-overlay
1582 prompt-start (point)) 1578 prompt-start (point))
1583 ;; Need to create the overlay 1579 ;; Need to create the overlay
1584 (let ((over (make-overlay prompt-start (point)))) 1580 (setq comint-last-prompt-overlay
1585 (overlay-put over 'face 'comint-highlight-prompt) 1581 (make-overlay prompt-start (point)))
1586 (overlay-put over 'front-sticky t) 1582 (overlay-put comint-last-prompt-overlay
1587 (overlay-put over 'rear-nonsticky t) 1583 'face 'comint-highlight-prompt)))))
1588 (setq comint-last-prompt-overlay over))))))
1589 1584
1590 (goto-char saved-point) 1585 (goto-char saved-point)
1591 1586