diff options
| author | Richard M. Stallman | 1998-02-14 04:32:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-02-14 04:32:38 +0000 |
| commit | 1a94abeac239a4c06c82441e4a61446ea8f56fb9 (patch) | |
| tree | e2aeecfd6c66d26dd6d9430839977b3060c4853c | |
| parent | 6b10a521440f694768760d8be786ce20e1470a08 (diff) | |
| download | emacs-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.el | 19 |
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. |
| 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 () |