From: Paul Eggert Date: Sat, 25 Apr 2020 02:19:31 +0000 (-0700) Subject: Tweak mutability doc a bit more X-Git-Tag: emacs-27.1-rc1~188 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a76af88dd872091f78bb1a4716750934f6fbaab3;p=emacs.git Tweak mutability doc a bit more Inspired by a comment from Michael Heerdegen (Bug#40671#114). * doc/lispref/objects.texi (Constants and Mutability): Tweak further. --- diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi index 1eda94ab63e..b4e9ff44112 100644 --- a/doc/lispref/objects.texi +++ b/doc/lispref/objects.texi @@ -2401,8 +2401,8 @@ literal @code{"aaa"} yields a constant string, whereas the function call @code{(make-string 3 ?a)} yields a mutable string that can be changed via later calls to @code{aset}. - A mutable object can become constant if it is passed to the -@code{eval} function, because a program should not modify an object + A mutable object can become constant if it is part of an expression +that is evaluated, because a program should not modify an object that is being evaluated. The reverse does not occur: constant objects should stay constant.