comparison lisp/comint.el @ 20894:962d8c41cfa2

(comint-interrupt-subjob): Call comint-kill-input. (comint-kill-subjob, comint-quit-subjob, comint-stop-subjob): Likewise.
author Richard M. Stallman <rms@gnu.org>
date Sat, 14 Feb 1998 04:32:38 +0000
parents ad0d2c5040a0
children 72fa617ce5e2
comparison
equal deleted inserted replaced
20893:41ad3e101628 20894:962d8c41cfa2
1576 (beginning-of-line 0) 1576 (beginning-of-line 0)
1577 (set-window-start (selected-window) (point)) 1577 (set-window-start (selected-window) (point))
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.
1582 This command also kills the pending input
1583 between 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.
1590 This command also kills the pending input
1591 between 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.
1598 This command also kills the pending input
1599 between 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.
1606 This command also kills the pending input
1607 between the process-mark and point.
1608
1597 WARNING: if there is no current subjob, you can end up suspending 1609 WARNING: if there is no current subjob, you can end up suspending
1598 the top-level process running in the buffer. If you accidentally do 1610 the top-level process running in the buffer. If you accidentally do
1599 this, use \\[comint-continue-subjob] to resume the process. (This 1611 this, use \\[comint-continue-subjob] to resume the process. (This
1600 is not a problem with most shells, since they ignore this signal.)" 1612 is 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 ()
1605 "Send CONT signal to process buffer's process group. 1618 "Send CONT signal to process buffer's process group.
1606 Useful if you accidentally suspend the top-level process." 1619 Useful if you accidentally suspend the top-level process."