aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorEli Zaretskii2017-11-26 20:23:15 +0200
committerEli Zaretskii2017-11-26 20:23:15 +0200
commit16358d4fcbad3fa60ff36167ae666b1ec7e7c02a (patch)
treefe8f563ab7c0bb7e43992e2db7e4ddea857dda1a /src/data.c
parenta89f0b6f33f9eb8910a1fceda9028d76ef50b05d (diff)
downloademacs-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 'src/data.c')
-rw-r--r--src/data.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/data.c b/src/data.c
index b4f6fd5c652..d54c46d72bf 100644
--- a/src/data.c
+++ b/src/data.c
@@ -3880,12 +3880,14 @@ syms_of_data (void)
3880 set_symbol_function (Qwholenump, XSYMBOL (Qnatnump)->u.s.function); 3880 set_symbol_function (Qwholenump, XSYMBOL (Qnatnump)->u.s.function);
3881 3881
3882 DEFVAR_LISP ("most-positive-fixnum", Vmost_positive_fixnum, 3882 DEFVAR_LISP ("most-positive-fixnum", Vmost_positive_fixnum,
3883 doc: /* The largest value that is representable in a Lisp integer. */); 3883 doc: /* The largest value that is representable in a Lisp integer.
3884This variable cannot be set; trying to do so will signal an error. */);
3884 Vmost_positive_fixnum = make_number (MOST_POSITIVE_FIXNUM); 3885 Vmost_positive_fixnum = make_number (MOST_POSITIVE_FIXNUM);
3885 make_symbol_constant (intern_c_string ("most-positive-fixnum")); 3886 make_symbol_constant (intern_c_string ("most-positive-fixnum"));
3886 3887
3887 DEFVAR_LISP ("most-negative-fixnum", Vmost_negative_fixnum, 3888 DEFVAR_LISP ("most-negative-fixnum", Vmost_negative_fixnum,
3888 doc: /* The smallest value that is representable in a Lisp integer. */); 3889 doc: /* The smallest value that is representable in a Lisp integer.
3890This variable cannot be set; trying to do so will signal an error. */);
3889 Vmost_negative_fixnum = make_number (MOST_NEGATIVE_FIXNUM); 3891 Vmost_negative_fixnum = make_number (MOST_NEGATIVE_FIXNUM);
3890 make_symbol_constant (intern_c_string ("most-negative-fixnum")); 3892 make_symbol_constant (intern_c_string ("most-negative-fixnum"));
3891 3893