diff options
| author | Eli Zaretskii | 2017-11-26 20:23:15 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-11-26 20:23:15 +0200 |
| commit | 16358d4fcbad3fa60ff36167ae666b1ec7e7c02a (patch) | |
| tree | fe8f563ab7c0bb7e43992e2db7e4ddea857dda1a /doc/lispref/errors.texi | |
| parent | a89f0b6f33f9eb8910a1fceda9028d76ef50b05d (diff) | |
| download | emacs-16358d4fcbad3fa60ff36167ae666b1ec7e7c02a.tar.gz emacs-16358d4fcbad3fa60ff36167ae666b1ec7e7c02a.zip | |
Improve documentation of "constant" symbols
* src/font.c (syms_of_font) <font-weight-table, font-slant-table>
<font-width-table>:
* src/data.c (syms_of_data) <most-positive-fixnum>
<most-negative-fixnum>:
* src/buffer.c (syms_of_buffer) <enable-multibyte-characters>:
Mention in the doc strings that these variables are read-only.
* doc/lispref/variables.texi (Creating Buffer-Local): Document
that making a constant variable buffer-local signals an error.
* doc/lispref/variables.texi (Constant Variables):
* doc/lispref/errors.texi (Standard Errors): More accurate and
up-to-date documentation of which symbols cannot be assigned
values.
Diffstat (limited to 'doc/lispref/errors.texi')
| -rw-r--r-- | doc/lispref/errors.texi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/lispref/errors.texi b/doc/lispref/errors.texi index 1f67819c34e..cd22b70800d 100644 --- a/doc/lispref/errors.texi +++ b/doc/lispref/errors.texi | |||
| @@ -172,8 +172,11 @@ The message is @samp{Search failed}. @xref{Searching and Matching}. | |||
| 172 | 172 | ||
| 173 | @item setting-constant | 173 | @item setting-constant |
| 174 | The message is @samp{Attempt to set a constant symbol}. This happens | 174 | The message is @samp{Attempt to set a constant symbol}. This happens |
| 175 | when attempting to assign values to @code{nil}, @code{t}, and keyword | 175 | when attempting to assign values to @code{nil}, @code{t}, |
| 176 | symbols. @xref{Constant Variables}. | 176 | @code{most-positive-fixnum}, @code{most-negative-fixnum}, and keyword |
| 177 | symbols. It also happens when attempting to assign values to | ||
| 178 | @code{enable-multibyte-characters} and some other symbols whose direct | ||
| 179 | assignment is not allowed for some reason. @xref{Constant Variables}. | ||
| 177 | 180 | ||
| 178 | @c simple.el | 181 | @c simple.el |
| 179 | @item text-read-only | 182 | @item text-read-only |