aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2020-04-19 19:52:53 -0700
committerPaul Eggert2020-04-19 19:53:40 -0700
commit05089a4d65831c5e873956f5f2d92a3d5672d405 (patch)
tree5b7f9d769b187b616319696365d6b92a1574c29b
parenta1040861f118881004f59866111f64cd0ae03b7a (diff)
downloademacs-05089a4d65831c5e873956f5f2d92a3d5672d405.tar.gz
emacs-05089a4d65831c5e873956f5f2d92a3d5672d405.zip
Tweak wording re constant variables
* doc/lispref/objects.texi (Constants and Mutability): Tweak. Problem reported by Michael Heerdegen (Bug#40693#44).
-rw-r--r--doc/lispref/objects.texi3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi
index b45eb7ad8a4..abd258eb537 100644
--- a/doc/lispref/objects.texi
+++ b/doc/lispref/objects.texi
@@ -2400,7 +2400,8 @@ literal @code{"aaa"} yields a constant string, whereas the function
2400call @code{(make-string 3 ?a)} yields a mutable string that can be 2400call @code{(make-string 3 ?a)} yields a mutable string that can be
2401changed via later calls to @code{aset}. 2401changed via later calls to @code{aset}.
2402 2402
2403 Modifying a constant symbol signals an error (@pxref{Constant Variables}). 2403 Trying to modify a constant variable signals an error
2404(@pxref{Constant Variables}).
2404A program should not attempt to modify other types of constants because the 2405A program should not attempt to modify other types of constants because the
2405resulting behavior is undefined: the Lisp interpreter might or might 2406resulting behavior is undefined: the Lisp interpreter might or might
2406not detect the error, and if it does not detect the error the 2407not detect the error, and if it does not detect the error the