+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
\f
;; 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))
\f
;; Random input hackage