aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Spiegel2002-07-16 17:59:16 +0000
committerAndré Spiegel2002-07-16 17:59:16 +0000
commit8f980b27dec47e36edffc0c485d8f9c117f7b793 (patch)
treec273e8edd545376e30b6439e7f82dd2c70afad58
parentfc08c98703a47e8fd0cf29ade517bb4952a82a70 (diff)
downloademacs-8f980b27dec47e36edffc0c485d8f9c117f7b793.tar.gz
emacs-8f980b27dec47e36edffc0c485d8f9c117f7b793.zip
Let C-x C-q refer to toggle-read-only, not vc-toggle-read-only.
-rw-r--r--man/buffers.texi17
1 files changed, 8 insertions, 9 deletions
diff --git a/man/buffers.texi b/man/buffers.texi
index 03fef48f1af..8630a17bf95 100644
--- a/man/buffers.texi
+++ b/man/buffers.texi
@@ -181,7 +181,7 @@ unless they visit files: such buffers are used internally by Emacs.
181 181
182@table @kbd 182@table @kbd
183@item C-x C-q 183@item C-x C-q
184Toggle read-only status of buffer (@code{vc-toggle-read-only}). 184Toggle read-only status of buffer (@code{toggle-read-only}).
185@item M-x rename-buffer @key{RET} @var{name} @key{RET} 185@item M-x rename-buffer @key{RET} @var{name} @key{RET}
186Change the name of the current buffer. 186Change the name of the current buffer.
187@item M-x rename-uniquely 187@item M-x rename-uniquely
@@ -191,9 +191,6 @@ Scroll through buffer @var{buffer}.
191@end table 191@end table
192 192
193@kindex C-x C-q 193@kindex C-x C-q
194@c Don't index vc-toggle-read-only here, it is indexed in files.texi,
195@c in the node "Basic VC Editing".
196@c @findex vc-toggle-read-only
197@vindex buffer-read-only 194@vindex buffer-read-only
198@cindex read-only buffer 195@cindex read-only buffer
199 A buffer can be @dfn{read-only}, which means that commands to change 196 A buffer can be @dfn{read-only}, which means that commands to change
@@ -203,14 +200,16 @@ buffers are usually made by subsystems such as Dired and Rmail that
203have special commands to operate on the text; also by visiting a file 200have special commands to operate on the text; also by visiting a file
204whose access control says you cannot write it. 201whose access control says you cannot write it.
205 202
203@findex toggle-read-only
206 If you wish to make changes in a read-only buffer, use the command 204 If you wish to make changes in a read-only buffer, use the command
207@kbd{C-x C-q} (@code{vc-toggle-read-only}). It makes a read-only buffer 205@kbd{C-x C-q} (@code{toggle-read-only}). It makes a read-only buffer
208writable, and makes a writable buffer read-only. In most cases, this 206writable, and makes a writable buffer read-only. This
209works by setting the variable @code{buffer-read-only}, which has a local 207works by setting the variable @code{buffer-read-only}, which has a local
210value in each buffer and makes the buffer read-only if its value is 208value in each buffer and makes the buffer read-only if its value is
211non-@code{nil}. If the file is maintained with version control, 209non-@code{nil}. If you have files under version control, you may find
212@kbd{C-x C-q} works through the version control system to change the 210it convenient to bind @kbd{C-x C-q} to @code{vc-toggle-read-only}
213read-only status of the file as well as the buffer. @xref{Version 211instead. Then, typing @kbd{C-x C-q} not only changes the read-only
212flag, but it also checks the file in or out. @xref{Version
214Control}. 213Control}.
215 214
216@findex rename-buffer 215@findex rename-buffer