diff options
| author | Eli Zaretskii | 2015-12-01 18:11:11 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-12-01 18:11:11 +0200 |
| commit | e702ab8d843dd416b6721c2e05be832d69ad1977 (patch) | |
| tree | b552c398e0b4d0ff44ad8049ab162c354e5541fb | |
| parent | 628d0063f8dbd238df4103c84112f3a19315f590 (diff) | |
| download | emacs-e702ab8d843dd416b6721c2e05be832d69ad1977.tar.gz emacs-e702ab8d843dd416b6721c2e05be832d69ad1977.zip | |
Document 'inhibit-read-only' property
* doc/lispref/text.texi (Special Properties): Describe the new
'inhibit-read-only' text property. Add cross-reference to where
read-only buffers are described.
* doc/lispref/buffers.texi (Read Only Buffers): Mention that
'inhibit-read-only' property exempts text from being read-only.
Add cross-reference to "Special Properties".
* etc/NEWS: Move the entry about 'inhibit-read-only' property to
its place and mark it documented.
| -rw-r--r-- | doc/lispref/buffers.texi | 4 | ||||
| -rw-r--r-- | doc/lispref/text.texi | 4 | ||||
| -rw-r--r-- | etc/NEWS | 11 |
3 files changed, 11 insertions, 8 deletions
diff --git a/doc/lispref/buffers.texi b/doc/lispref/buffers.texi index 45a21c8e806..55fa5bcd6f0 100644 --- a/doc/lispref/buffers.texi +++ b/doc/lispref/buffers.texi | |||
| @@ -716,7 +716,9 @@ The special commands of these modes bind @code{buffer-read-only} to | |||
| 716 | 716 | ||
| 717 | @defvar buffer-read-only | 717 | @defvar buffer-read-only |
| 718 | This buffer-local variable specifies whether the buffer is read-only. | 718 | This buffer-local variable specifies whether the buffer is read-only. |
| 719 | The buffer is read-only if this variable is non-@code{nil}. | 719 | The buffer is read-only if this variable is non-@code{nil}. However, |
| 720 | characters that have the @code{inhibit-read-only} text property can | ||
| 721 | still be modified. @xref{Special Properties, inhibit-read-only}. | ||
| 720 | @end defvar | 722 | @end defvar |
| 721 | 723 | ||
| 722 | @defvar inhibit-read-only | 724 | @defvar inhibit-read-only |
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 85109415719..45373675998 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -3267,8 +3267,8 @@ and then remove the property. @xref{Read Only Buffers}. | |||
| 3267 | 3267 | ||
| 3268 | @item inhibit-read-only | 3268 | @item inhibit-read-only |
| 3269 | @kindex inhibit-read-only @r{(text property)} | 3269 | @kindex inhibit-read-only @r{(text property)} |
| 3270 | If a character has the property @code{inhibit-read-only}, and the | 3270 | Characters that have the property @code{inhibit-read-only} can be |
| 3271 | buffer is read-only, editing the character in question is allowed. | 3271 | edited even in read-only buffers. @xref{Read Only Buffers}. |
| 3272 | 3272 | ||
| 3273 | @item invisible | 3273 | @item invisible |
| 3274 | @kindex invisible @r{(text property)} | 3274 | @kindex invisible @r{(text property)} |
| @@ -181,9 +181,6 @@ for use in Emacs bug reports. | |||
| 181 | hiding character but the default `.' can be used by let-binding the | 181 | hiding character but the default `.' can be used by let-binding the |
| 182 | variable `read-hide-char'. | 182 | variable `read-hide-char'. |
| 183 | 183 | ||
| 184 | ** A new text property `inhibit-read-only' can be used in read-only | ||
| 185 | buffers to allow certain parts of the text to be writable. | ||
| 186 | |||
| 187 | ** A new function `directory-files-recursively' returns all matching | 184 | ** A new function `directory-files-recursively' returns all matching |
| 188 | files (recursively) under a directory. | 185 | files (recursively) under a directory. |
| 189 | 186 | ||
| @@ -1142,8 +1139,12 @@ process filter, sentinel, etc., through keyword arguments (similar to | |||
| 1142 | 1139 | ||
| 1143 | +++ | 1140 | +++ |
| 1144 | ** New variable `inhibit-message', when bound to non-nil, inhibits | 1141 | ** New variable `inhibit-message', when bound to non-nil, inhibits |
| 1145 | `message' and related functions from displaying messages the Echo | 1142 | `message' and related functions from displaying messages the Echo |
| 1146 | Area. The output is still logged to the *Messages* buffer. | 1143 | Area. The output is still logged to the *Messages* buffer. |
| 1144 | |||
| 1145 | +++ | ||
| 1146 | ** A new text property `inhibit-read-only' can be used in read-only | ||
| 1147 | buffers to allow certain parts of the text to be writable. | ||
| 1147 | 1148 | ||
| 1148 | ** `read-buffer' takes a new `predicate' argument. | 1149 | ** `read-buffer' takes a new `predicate' argument. |
| 1149 | 1150 | ||