181 |
|
|
182 |
@table @kbd |
@table @kbd |
183 |
@item C-x C-q |
@item C-x C-q |
184 |
Toggle read-only status of buffer (@code{vc-toggle-read-only}). |
Toggle read-only status of buffer (@code{toggle-read-only}). |
185 |
@item M-x rename-buffer @key{RET} @var{name} @key{RET} |
@item M-x rename-buffer @key{RET} @var{name} @key{RET} |
186 |
Change the name of the current buffer. |
Change the name of the current buffer. |
187 |
@item M-x rename-uniquely |
@item M-x rename-uniquely |
191 |
@end table |
@end table |
192 |
|
|
193 |
@kindex C-x C-q |
@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 |
|
194 |
@vindex buffer-read-only |
@vindex buffer-read-only |
195 |
@cindex read-only buffer |
@cindex read-only buffer |
196 |
A buffer can be @dfn{read-only}, which means that commands to change |
A buffer can be @dfn{read-only}, which means that commands to change |
200 |
have special commands to operate on the text; also by visiting a file |
have special commands to operate on the text; also by visiting a file |
201 |
whose access control says you cannot write it. |
whose access control says you cannot write it. |
202 |
|
|
203 |
|
@findex toggle-read-only |
204 |
If you wish to make changes in a read-only buffer, use the command |
If you wish to make changes in a read-only buffer, use the command |
205 |
@kbd{C-x C-q} (@code{vc-toggle-read-only}). It makes a read-only buffer |
@kbd{C-x C-q} (@code{toggle-read-only}). It makes a read-only buffer |
206 |
writable, and makes a writable buffer read-only. In most cases, this |
writable, and makes a writable buffer read-only. This |
207 |
works by setting the variable @code{buffer-read-only}, which has a local |
works by setting the variable @code{buffer-read-only}, which has a local |
208 |
value in each buffer and makes the buffer read-only if its value is |
value in each buffer and makes the buffer read-only if its value is |
209 |
non-@code{nil}. If the file is maintained with version control, |
non-@code{nil}. If you have files under version control, you may find |
210 |
@kbd{C-x C-q} works through the version control system to change the |
it convenient to bind @kbd{C-x C-q} to @code{vc-toggle-read-only} |
211 |
read-only status of the file as well as the buffer. @xref{Version |
instead. Then, typing @kbd{C-x C-q} not only changes the read-only |
212 |
|
flag, but it also checks the file in or out. @xref{Version |
213 |
Control}. |
Control}. |
214 |
|
|
215 |
@findex rename-buffer |
@findex rename-buffer |