aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-02-14 04:32:38 +0000
committerRichard M. Stallman1998-02-14 04:32:38 +0000
commit1a94abeac239a4c06c82441e4a61446ea8f56fb9 (patch)
treee2aeecfd6c66d26dd6d9430839977b3060c4853c
parent6b10a521440f694768760d8be786ce20e1470a08 (diff)
downloademacs-1a94abeac239a4c06c82441e4a61446ea8f56fb9.tar.gz
emacs-1a94abeac239a4c06c82441e4a61446ea8f56fb9.zip
(comint-interrupt-subjob): Call comint-kill-input.
(comint-kill-subjob, comint-quit-subjob, comint-stop-subjob): Likewise.
-rw-r--r--lisp/comint.el19
1 files changed, 16 insertions, 3 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index 8b18dedd30c..b915ebdde1d 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -1578,27 +1578,40 @@ Sets mark to the value of point when this command is run."
1578 (comint-skip-prompt))) 1578 (comint-skip-prompt)))
1579 1579
1580(defun comint-interrupt-subjob () 1580(defun comint-interrupt-subjob ()
1581 "Interrupt the current subjob." 1581 "Interrupt the current subjob.
1582This command also kills the pending input
1583between the process-mark and point."
1582 (interactive) 1584 (interactive)
1585 (comint-kill-input)
1583 (interrupt-process nil comint-ptyp)) 1586 (interrupt-process nil comint-ptyp))
1584 1587
1585(defun comint-kill-subjob () 1588(defun comint-kill-subjob ()
1586 "Send kill signal to the current subjob." 1589 "Send kill signal to the current subjob.
1590This command also kills the pending input
1591between the process-mark and point."
1587 (interactive) 1592 (interactive)
1593 (comint-kill-input)
1588 (kill-process nil comint-ptyp)) 1594 (kill-process nil comint-ptyp))
1589 1595
1590(defun comint-quit-subjob () 1596(defun comint-quit-subjob ()
1591 "Send quit signal to the current subjob." 1597 "Send quit signal to the current subjob.
1598This command also kills the pending input
1599between the process-mark and point."
1592 (interactive) 1600 (interactive)
1601 (comint-kill-input)
1593 (quit-process nil comint-ptyp)) 1602 (quit-process nil comint-ptyp))
1594 1603
1595(defun comint-stop-subjob () 1604(defun comint-stop-subjob ()
1596 "Stop the current subjob. 1605 "Stop the current subjob.
1606This command also kills the pending input
1607between the process-mark and point.
1608
1597WARNING: if there is no current subjob, you can end up suspending 1609WARNING: if there is no current subjob, you can end up suspending
1598the top-level process running in the buffer. If you accidentally do 1610the top-level process running in the buffer. If you accidentally do
1599this, use \\[comint-continue-subjob] to resume the process. (This 1611this, use \\[comint-continue-subjob] to resume the process. (This
1600is not a problem with most shells, since they ignore this signal.)" 1612is not a problem with most shells, since they ignore this signal.)"
1601 (interactive) 1613 (interactive)
1614 (comint-kill-input)
1602 (stop-process nil comint-ptyp)) 1615 (stop-process nil comint-ptyp))
1603 1616
1604(defun comint-continue-subjob () 1617(defun comint-continue-subjob ()