aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2008-10-22 16:08:11 +0000
committerMartin Rudalics2008-10-22 16:08:11 +0000
commitf76f8246084a856fa355aab2e72a3bc453694f36 (patch)
tree6d709ea1d6ccb80b1a35946b197890f80c2045d5
parent12bb31115ee71c222f78d116adbb5ab37a4eadb2 (diff)
downloademacs-f76f8246084a856fa355aab2e72a3bc453694f36.tar.gz
emacs-f76f8246084a856fa355aab2e72a3bc453694f36.zip
(Killing Buffers): Update documentation of kill-buffer.
-rw-r--r--doc/lispref/ChangeLog3
-rw-r--r--doc/lispref/buffers.texi8
2 files changed, 9 insertions, 2 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index ff744560092..04fbf8716a6 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -5,6 +5,9 @@
5 (Choosing Window): Rewrite documentation of display-buffer and 5 (Choosing Window): Rewrite documentation of display-buffer and
6 its options. 6 its options.
7 7
8 * buffers.texi (Killing Buffers): Update documentation of
9 kill-buffer.
10
82008-10-21 Eli Zaretskii <eliz@gnu.org> 112008-10-21 Eli Zaretskii <eliz@gnu.org>
9 12
10 * processes.texi (Serial Ports): Fix wording and improve markup. 13 * processes.texi (Serial Ports): Fix wording and improve markup.
diff --git a/doc/lispref/buffers.texi b/doc/lispref/buffers.texi
index 4d12185726c..b915e69ab6a 100644
--- a/doc/lispref/buffers.texi
+++ b/doc/lispref/buffers.texi
@@ -996,10 +996,11 @@ this feature to test whether a buffer has been killed:
996@end group 996@end group
997@end example 997@end example
998 998
999@deffn Command kill-buffer buffer-or-name 999@deffn Command kill-buffer &optional buffer-or-name
1000This function kills the buffer @var{buffer-or-name}, freeing all its 1000This function kills the buffer @var{buffer-or-name}, freeing all its
1001memory for other uses or to be returned to the operating system. If 1001memory for other uses or to be returned to the operating system. If
1002@var{buffer-or-name} is @code{nil}, it kills the current buffer. 1002@var{buffer-or-name} is @code{nil} or omitted, it kills the current
1003buffer.
1003 1004
1004Any processes that have this buffer as the @code{process-buffer} are 1005Any processes that have this buffer as the @code{process-buffer} are
1005sent the @code{SIGHUP} signal, which normally causes them to terminate. 1006sent the @code{SIGHUP} signal, which normally causes them to terminate.
@@ -1012,6 +1013,9 @@ It does this even if not called interactively. To prevent the request
1012for confirmation, clear the modified flag before calling 1013for confirmation, clear the modified flag before calling
1013@code{kill-buffer}. @xref{Buffer Modification}. 1014@code{kill-buffer}. @xref{Buffer Modification}.
1014 1015
1016This function calls `replace-buffer-in-windows' for cleaning up all
1017windows currently displaying the buffer to be killed.
1018
1015Killing a buffer that is already dead has no effect. 1019Killing a buffer that is already dead has no effect.
1016 1020
1017This function returns @code{t} if it actually killed the buffer. It 1021This function returns @code{t} if it actually killed the buffer. It