Mercurial > emacs
comparison lisp/comint.el @ 30766:dacf4830a9a0
(comint-send-string, comint-send-region): Make into real functions.
Snapshot the prompt before sending.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 11 Aug 2000 19:15:51 +0000 |
parents | 46364997df9c |
children | c66efd78e8d4 |
comparison
equal
deleted
inserted
replaced
30765:1e5a486b8b25 | 30766:dacf4830a9a0 |
---|---|
1838 (if (string-match comint-password-prompt-regexp string) | 1838 (if (string-match comint-password-prompt-regexp string) |
1839 (send-invisible nil))) | 1839 (send-invisible nil))) |
1840 | 1840 |
1841 ;; Low-level process communication | 1841 ;; Low-level process communication |
1842 | 1842 |
1843 (defalias 'comint-send-string 'process-send-string) | 1843 (defun comint-send-string (process string) |
1844 (defalias 'comint-send-region 'process-send-region) | 1844 "Like `process-send-string', but also does extra bookkeeping for comint mode." |
1845 (with-current-buffer (process-buffer process) | |
1846 (comint-snapshot-last-prompt)) | |
1847 (process-send-string process string)) | |
1848 | |
1849 (defun comint-send-region (process start end) | |
1850 "Like `process-send-region', but also does extra bookkeeping for comint mode." | |
1851 (with-current-buffer (process-buffer process) | |
1852 (comint-snapshot-last-prompt)) | |
1853 (process-send-region process start end)) | |
1845 | 1854 |
1846 ;; Random input hackage | 1855 ;; Random input hackage |
1847 | 1856 |
1848 (defun comint-kill-output () | 1857 (defun comint-kill-output () |
1849 "Kill all output from interpreter since last input. | 1858 "Kill all output from interpreter since last input. |