diff options
| author | Chong Yidong | 2012-04-08 21:30:26 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-04-08 21:30:26 +0800 |
| commit | 9fe9631c2f2a401c96a38b8db525a2e63df84524 (patch) | |
| tree | 81549701fbbb8f540ed6df608478385ed40d2bfe | |
| parent | 5c14e333bc3bc62a082a1c04fd8eda8f6a4ac30a (diff) | |
| download | emacs-9fe9631c2f2a401c96a38b8db525a2e63df84524.tar.gz emacs-9fe9631c2f2a401c96a38b8db525a2e63df84524.zip | |
* doc/lispref/processes.texi (Query Before Exit): Remove obsolete function
process-kill-without-query.
Fixes: debbugs:11190
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/processes.texi | 24 |
2 files changed, 8 insertions, 21 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index eb07b7c10ca..30c8ad2e4ae 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-04-08 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * processes.texi (Query Before Exit): Remove obsolete function | ||
| 4 | process-kill-without-query (Bug#11190). | ||
| 5 | |||
| 1 | 2012-04-08 Glenn Morris <rgm@gnu.org> | 6 | 2012-04-08 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * files.texi, frames.texi, loading.texi, os.texi, processes.texi: | 8 | * files.texi, frames.texi, loading.texi, os.texi, processes.texi: |
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index d251240d198..f59937da15d 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi | |||
| @@ -1629,35 +1629,17 @@ This returns the query flag of @var{process}. | |||
| 1629 | This function sets the query flag of @var{process} to @var{flag}. It | 1629 | This function sets the query flag of @var{process} to @var{flag}. It |
| 1630 | returns @var{flag}. | 1630 | returns @var{flag}. |
| 1631 | 1631 | ||
| 1632 | Here is an example of using @code{set-process-query-on-exit-flag} on a | ||
| 1633 | shell process to avoid querying: | ||
| 1634 | |||
| 1632 | @smallexample | 1635 | @smallexample |
| 1633 | @group | 1636 | @group |
| 1634 | ;; @r{Don't query about the shell process} | ||
| 1635 | (set-process-query-on-exit-flag (get-process "shell") nil) | 1637 | (set-process-query-on-exit-flag (get-process "shell") nil) |
| 1636 | @result{} t | 1638 | @result{} t |
| 1637 | @end group | 1639 | @end group |
| 1638 | @end smallexample | 1640 | @end smallexample |
| 1639 | @end defun | 1641 | @end defun |
| 1640 | 1642 | ||
| 1641 | @defun process-kill-without-query process &optional do-query | ||
| 1642 | This function clears the query flag of @var{process}, so that | ||
| 1643 | Emacs will not query the user on account of that process. | ||
| 1644 | |||
| 1645 | Actually, the function does more than that: it returns the old value of | ||
| 1646 | the process's query flag, and sets the query flag to @var{do-query}. | ||
| 1647 | Please don't use this function to do those things any more---please | ||
| 1648 | use the newer, cleaner functions @code{process-query-on-exit-flag} and | ||
| 1649 | @code{set-process-query-on-exit-flag} in all but the simplest cases. | ||
| 1650 | The only way you should use @code{process-kill-without-query} nowadays | ||
| 1651 | is like this: | ||
| 1652 | |||
| 1653 | @smallexample | ||
| 1654 | @group | ||
| 1655 | ;; @r{Don't query about the shell process} | ||
| 1656 | (process-kill-without-query (get-process "shell")) | ||
| 1657 | @end group | ||
| 1658 | @end smallexample | ||
| 1659 | @end defun | ||
| 1660 | |||
| 1661 | @node System Processes | 1643 | @node System Processes |
| 1662 | @section Accessing Other Processes | 1644 | @section Accessing Other Processes |
| 1663 | @cindex system processes | 1645 | @cindex system processes |