Commit 79e8dca7 authored by Miles Bader's avatar Miles Bader
Browse files

(comint-send-string, comint-send-region): Make into real functions.

Snapshot the prompt before sending.
parent 187bd11c
2000-08-12 Miles Bader <miles@gnu.org>
* comint.el (comint-send-string, comint-send-region): Make into
real functions. Snapshot the prompt before sending.
2000-08-11 Eli Zaretskii <eliz@is.elta.co.il>
* info.el (Info-find-emacs-command-nodes): Rewrite to use
......
......@@ -1840,8 +1840,17 @@ This function could be in the list `comint-output-filter-functions'."
;; Low-level process communication
(defalias 'comint-send-string 'process-send-string)
(defalias 'comint-send-region 'process-send-region)
(defun comint-send-string (process string)
"Like `process-send-string', but also does extra bookkeeping for comint mode."
(with-current-buffer (process-buffer process)
(comint-snapshot-last-prompt))
(process-send-string process string))
(defun comint-send-region (process start end)
"Like `process-send-region', but also does extra bookkeeping for comint mode."
(with-current-buffer (process-buffer process)
(comint-snapshot-last-prompt))
(process-send-region process start end))
;; Random input hackage
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment