comparison lisp/comint.el @ 37928:689e6d3dbdc2

(comint-carriage-motion): Doc-string tweaks.
author Miles Bader <miles@gnu.org>
date Mon, 28 May 2001 15:09:44 +0000
parents 682de754cdf0
children 54047d1b6974
comparison
equal deleted inserted replaced
37927:d732e11e48ac 37928:689e6d3dbdc2
1494 (when comint-last-prompt-overlay 1494 (when comint-last-prompt-overlay
1495 (overlay-put comint-last-prompt-overlay 'evaporate t) 1495 (overlay-put comint-last-prompt-overlay 'evaporate t)
1496 (setq comint-last-prompt-overlay nil))) 1496 (setq comint-last-prompt-overlay nil)))
1497 1497
1498 (defun comint-carriage-motion (string) 1498 (defun comint-carriage-motion (string)
1499 "Handle carriage returns in comint output. 1499 "Handle carriage control characters in comint output.
1500 Translate carraige return/linefeed sequences to linefeeds. 1500 Translate carriage return/linefeed sequences to linefeeds.
1501 Let single carriage returns delete to the beginning of the line. 1501 Make single carriage returns delete to the beginning of the line.
1502 Let backspaces delete the previous character. 1502 Make backspaces delete the previous character.
1503 1503
1504 This function should be in the list `comint-output-filter-functions'." 1504 This function should be in the list `comint-output-filter-functions'."
1505 (save-match-data 1505 (save-match-data
1506 ;; We first check to see if STRING contains any magic characters, to 1506 ;; We first check to see if STRING contains any magic characters, to
1507 ;; avoid overhead in the common case where it does not 1507 ;; avoid overhead in the common case where it does not