aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2004-04-15 00:26:17 +0000
committerLuc Teirlinck2004-04-15 00:26:17 +0000
commit9e860631e74a527248a75f16c036da26feec8dfd (patch)
tree577d479eed2e5927c049d12ca098189f4f769d09
parent572943b30c4c9e043cefec95fcaee61a146411f9 (diff)
downloademacs-9e860631e74a527248a75f16c036da26feec8dfd.tar.gz
emacs-9e860631e74a527248a75f16c036da26feec8dfd.zip
(Read Only Buffers): Mention optional ARG to `toggle-read-only'.
-rw-r--r--lispref/ChangeLog7
-rw-r--r--lispref/buffers.texi9
2 files changed, 13 insertions, 3 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index 2b4eae1ca63..6637064af48 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,6 +1,11 @@
12004-04-14 Luc Teirlinck <teirllm@auburn.edu>
2
3 * buffers.texi (Read Only Buffers): Mention optional ARG to
4 `toggle-read-only'.
5
12004-04-14 Nick Roberts <nick@nick.uklinux.net> 62004-04-14 Nick Roberts <nick@nick.uklinux.net>
2 7
3 * windows.texi (Selecting Windows): Note that get-lru-window 8 * windows.texi (Selecting Windows): Note that get-lru-window
4 returns a full-width window if possible. 9 returns a full-width window if possible.
5 10
62004-04-13 Luc Teirlinck <teirllm@auburn.edu> 112004-04-13 Luc Teirlinck <teirllm@auburn.edu>
diff --git a/lispref/buffers.texi b/lispref/buffers.texi
index 0eee01d980d..723dae742ab 100644
--- a/lispref/buffers.texi
+++ b/lispref/buffers.texi
@@ -737,12 +737,17 @@ properties have no effect. If @code{inhibit-read-only} is a list, then
737of the list (comparison is done with @code{eq}). 737of the list (comparison is done with @code{eq}).
738@end defvar 738@end defvar
739 739
740@deffn Command toggle-read-only 740@deffn Command toggle-read-only &optional arg
741This command changes whether the current buffer is read-only. It is 741This command toggles whether the current buffer is read-only. It is
742intended for interactive use; do not use it in programs. At any given 742intended for interactive use; do not use it in programs. At any given
743point in a program, you should know whether you want the read-only flag 743point in a program, you should know whether you want the read-only flag
744on or off; so you can set @code{buffer-read-only} explicitly to the 744on or off; so you can set @code{buffer-read-only} explicitly to the
745proper value, @code{t} or @code{nil}. 745proper value, @code{t} or @code{nil}.
746
747If @var{arg} is non-@code{nil}, it should be a raw prefix argument.
748@code{toggle-read-only} sets @code{buffer-read-only} to @code{t} if
749the numeric value of that prefix argument is positive and to
750@code{nil} otherwise. @xref{Prefix Command Arguments}.
746@end deffn 751@end deffn
747 752
748@defun barf-if-buffer-read-only 753@defun barf-if-buffer-read-only