aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-04-08 21:30:26 +0800
committerChong Yidong2012-04-08 21:30:26 +0800
commit9fe9631c2f2a401c96a38b8db525a2e63df84524 (patch)
tree81549701fbbb8f540ed6df608478385ed40d2bfe
parent5c14e333bc3bc62a082a1c04fd8eda8f6a4ac30a (diff)
downloademacs-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/ChangeLog5
-rw-r--r--doc/lispref/processes.texi24
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 @@
12012-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
12012-04-08 Glenn Morris <rgm@gnu.org> 62012-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}.
1629This function sets the query flag of @var{process} to @var{flag}. It 1629This function sets the query flag of @var{process} to @var{flag}. It
1630returns @var{flag}. 1630returns @var{flag}.
1631 1631
1632Here is an example of using @code{set-process-query-on-exit-flag} on a
1633shell 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
1642This function clears the query flag of @var{process}, so that
1643Emacs will not query the user on account of that process.
1644
1645Actually, the function does more than that: it returns the old value of
1646the process's query flag, and sets the query flag to @var{do-query}.
1647Please don't use this function to do those things any more---please
1648use 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.
1650The only way you should use @code{process-kill-without-query} nowadays
1651is 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