aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2006-06-02 02:04:15 +0000
committerLuc Teirlinck2006-06-02 02:04:15 +0000
commit5d72601f6a6570b108573d346da64bbccc0cb8de (patch)
tree283de9cdc2454d98da02822f5da82e52b53b435d
parent6a8aec41a3d465217a7d998cae05bd640a748a2f (diff)
downloademacs-5d72601f6a6570b108573d346da64bbccc0cb8de.tar.gz
emacs-5d72601f6a6570b108573d346da64bbccc0cb8de.zip
(comint-send-input): Do not add help-echo and mouse-face to input if
`comint-use-prompt-regexp' is non-nil.
-rw-r--r--lisp/comint.el24
1 files changed, 12 insertions, 12 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index 20b7817b9dc..eb5c9f28a4e 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -1047,12 +1047,12 @@ Moves relative to `comint-input-ring-index'."
1047(defun comint-previous-input (arg) 1047(defun comint-previous-input (arg)
1048 "Cycle backwards through input history, saving input." 1048 "Cycle backwards through input history, saving input."
1049 (interactive "*p") 1049 (interactive "*p")
1050 (if (and comint-input-ring-index 1050 (if (and comint-input-ring-index
1051 (or ;; leaving the "end" of the ring 1051 (or ;; leaving the "end" of the ring
1052 (and (< arg 0) ; going down 1052 (and (< arg 0) ; going down
1053 (eq comint-input-ring-index 0)) 1053 (eq comint-input-ring-index 0))
1054 (and (> arg 0) ; going up 1054 (and (> arg 0) ; going up
1055 (eq comint-input-ring-index 1055 (eq comint-input-ring-index
1056 (1- (ring-length comint-input-ring))))) 1056 (1- (ring-length comint-input-ring)))))
1057 comint-stored-incomplete-input) 1057 comint-stored-incomplete-input)
1058 (comint-restore-input) 1058 (comint-restore-input)
@@ -1510,23 +1510,23 @@ Similarly for Soar, Scheme, etc."
1510 (concat input "\n"))) 1510 (concat input "\n")))
1511 1511
1512 (let ((beg (marker-position pmark)) 1512 (let ((beg (marker-position pmark))
1513 (end (if no-newline (point) (1- (point)))) 1513 (end (if no-newline (point) (1- (point))))
1514 (inhibit-modification-hooks t)) 1514 (inhibit-modification-hooks t))
1515 (when (> end beg) 1515 (when (> end beg)
1516 ;; Set text-properties for the input field 1516 (add-text-properties beg end
1517 (add-text-properties 1517 '(front-sticky t
1518 beg end 1518 font-lock-face comint-highlight-input))
1519 '(front-sticky t
1520 font-lock-face comint-highlight-input
1521 mouse-face highlight
1522 help-echo "mouse-2: insert after prompt as new input"))
1523 (unless comint-use-prompt-regexp 1519 (unless comint-use-prompt-regexp
1524 ;; Give old user input a field property of `input', to 1520 ;; Give old user input a field property of `input', to
1525 ;; distinguish it from both process output and unsent 1521 ;; distinguish it from both process output and unsent
1526 ;; input. The terminating newline is put into a special 1522 ;; input. The terminating newline is put into a special
1527 ;; `boundary' field to make cursor movement between input 1523 ;; `boundary' field to make cursor movement between input
1528 ;; and output fields smoother. 1524 ;; and output fields smoother.
1529 (put-text-property beg end 'field 'input))) 1525 (add-text-properties
1526 beg end
1527 '(mouse-face highlight
1528 help-echo "mouse-2: insert after prompt as new input"
1529 field input))))
1530 (unless (or no-newline comint-use-prompt-regexp) 1530 (unless (or no-newline comint-use-prompt-regexp)
1531 ;; Cover the terminating newline 1531 ;; Cover the terminating newline
1532 (add-text-properties end (1+ end) 1532 (add-text-properties end (1+ end)