Changeset 4098 for trunk/lisp/comint.el
- Timestamp:
- 07/01/06 08:27:06 (2 years ago)
- Files:
-
- trunk/lisp/comint.el (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/comint.el
r4091 r4098 1048 1048 "Cycle backwards through input history, saving input." 1049 1049 (interactive "*p") 1050 (if (and comint-input-ring-index 1050 (if (and comint-input-ring-index 1051 1051 (or ;; leaving the "end" of the ring 1052 1052 (and (< arg 0) ; going down 1053 1053 (eq comint-input-ring-index 0)) 1054 1054 (and (> arg 0) ; going up 1055 (eq comint-input-ring-index 1055 (eq comint-input-ring-index 1056 1056 (1- (ring-length comint-input-ring))))) 1057 1057 comint-stored-incomplete-input) … … 1511 1511 1512 1512 (let ((beg (marker-position pmark)) 1513 (end (if no-newline (point) (1- (point))))1514 (inhibit-modification-hooks t))1513 (end (if no-newline (point) (1- (point)))) 1514 (inhibit-modification-hooks t)) 1515 1515 (when (> end beg) 1516 ;; Set text-properties for the input field 1517 (add-text-properties 1518 beg end 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")) 1516 (add-text-properties beg end 1517 '(front-sticky t 1518 font-lock-face comint-highlight-input)) 1523 1519 (unless comint-use-prompt-regexp 1524 1520 ;; Give old user input a field property of `input', to … … 1527 1523 ;; `boundary' field to make cursor movement between input 1528 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 1530 (unless (or no-newline comint-use-prompt-regexp) 1531 1531 ;; Cover the terminating newline
