diff options
| author | Luc Teirlinck | 2004-04-15 00:26:17 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-04-15 00:26:17 +0000 |
| commit | 9e860631e74a527248a75f16c036da26feec8dfd (patch) | |
| tree | 577d479eed2e5927c049d12ca098189f4f769d09 | |
| parent | 572943b30c4c9e043cefec95fcaee61a146411f9 (diff) | |
| download | emacs-9e860631e74a527248a75f16c036da26feec8dfd.tar.gz emacs-9e860631e74a527248a75f16c036da26feec8dfd.zip | |
(Read Only Buffers): Mention optional ARG to `toggle-read-only'.
| -rw-r--r-- | lispref/ChangeLog | 7 | ||||
| -rw-r--r-- | lispref/buffers.texi | 9 |
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 @@ | |||
| 1 | 2004-04-14 Luc Teirlinck <teirllm@auburn.edu> | ||
| 2 | |||
| 3 | * buffers.texi (Read Only Buffers): Mention optional ARG to | ||
| 4 | `toggle-read-only'. | ||
| 5 | |||
| 1 | 2004-04-14 Nick Roberts <nick@nick.uklinux.net> | 6 | 2004-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 | ||
| 6 | 2004-04-13 Luc Teirlinck <teirllm@auburn.edu> | 11 | 2004-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 | |||
| 737 | of the list (comparison is done with @code{eq}). | 737 | of 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 |
| 741 | This command changes whether the current buffer is read-only. It is | 741 | This command toggles whether the current buffer is read-only. It is |
| 742 | intended for interactive use; do not use it in programs. At any given | 742 | intended for interactive use; do not use it in programs. At any given |
| 743 | point in a program, you should know whether you want the read-only flag | 743 | point in a program, you should know whether you want the read-only flag |
| 744 | on or off; so you can set @code{buffer-read-only} explicitly to the | 744 | on or off; so you can set @code{buffer-read-only} explicitly to the |
| 745 | proper value, @code{t} or @code{nil}. | 745 | proper value, @code{t} or @code{nil}. |
| 746 | |||
| 747 | If @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 | ||
| 749 | the 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 |