]> git.eshelyaron.com Git - emacs.git/commitdiff
Let C-x C-q refer to toggle-read-only, not vc-toggle-read-only.
authorAndré Spiegel <spiegel@gnu.org>
Tue, 16 Jul 2002 17:59:16 +0000 (17:59 +0000)
committerAndré Spiegel <spiegel@gnu.org>
Tue, 16 Jul 2002 17:59:16 +0000 (17:59 +0000)
man/buffers.texi

index 03fef48f1af48a69125cca431d43dd0ffe1ada78..8630a17bf957c6f7cc54332496b0a523d1bda334 100644 (file)
@@ -181,7 +181,7 @@ unless they visit files: such buffers are used internally by Emacs.
 
 @table @kbd
 @item C-x C-q
-Toggle read-only status of buffer (@code{vc-toggle-read-only}).
+Toggle read-only status of buffer (@code{toggle-read-only}).
 @item M-x rename-buffer @key{RET} @var{name} @key{RET}
 Change the name of the current buffer.
 @item M-x rename-uniquely
@@ -191,9 +191,6 @@ Scroll through buffer @var{buffer}.
 @end table
 
 @kindex C-x C-q
-@c Don't index vc-toggle-read-only here, it is indexed in files.texi,
-@c in the node "Basic VC Editing".
-@c @findex vc-toggle-read-only
 @vindex buffer-read-only
 @cindex read-only buffer
   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
 have special commands to operate on the text; also by visiting a file
 whose access control says you cannot write it.
 
+@findex toggle-read-only
   If you wish to make changes in a read-only buffer, use the command
-@kbd{C-x C-q} (@code{vc-toggle-read-only}).  It makes a read-only buffer
-writable, and makes a writable buffer read-only.  In most cases, this
+@kbd{C-x C-q} (@code{toggle-read-only}).  It makes a read-only buffer
+writable, and makes a writable buffer read-only.  This
 works by setting the variable @code{buffer-read-only}, which has a local
 value in each buffer and makes the buffer read-only if its value is
-non-@code{nil}.  If the file is maintained with version control,
-@kbd{C-x C-q} works through the version control system to change the
-read-only status of the file as well as the buffer.  @xref{Version
+non-@code{nil}.  If you have files under version control, you may find
+it convenient to bind @kbd{C-x C-q} to @code{vc-toggle-read-only}
+instead.  Then, typing @kbd{C-x C-q} not only changes the read-only
+flag, but it also checks the file in or out.  @xref{Version
 Control}.
 
 @findex rename-buffer