aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2000-08-11 19:17:18 +0000
committerMiles Bader2000-08-11 19:17:18 +0000
commit79e8dca7df9b65cea3843e5a9b5fed9bdb106747 (patch)
tree01aaab61be1be605ad19ba84e2301107f7b78bd0
parent187bd11cd3543eeb0fbe4524b69576bfba30afc2 (diff)
downloademacs-79e8dca7df9b65cea3843e5a9b5fed9bdb106747.tar.gz
emacs-79e8dca7df9b65cea3843e5a9b5fed9bdb106747.zip
(comint-send-string, comint-send-region): Make into real functions.
Snapshot the prompt before sending.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/comint.el13
2 files changed, 16 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 691a611178c..cfcdb82d84a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12000-08-12 Miles Bader <miles@gnu.org>
2
3 * comint.el (comint-send-string, comint-send-region): Make into
4 real functions. Snapshot the prompt before sending.
5
12000-08-11 Eli Zaretskii <eliz@is.elta.co.il> 62000-08-11 Eli Zaretskii <eliz@is.elta.co.il>
2 7
3 * info.el (Info-find-emacs-command-nodes): Rewrite to use 8 * info.el (Info-find-emacs-command-nodes): Rewrite to use
diff --git a/lisp/comint.el b/lisp/comint.el
index f890090c29a..1f0845d9ade 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -1840,8 +1840,17 @@ This function could be in the list `comint-output-filter-functions'."
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