summaryrefslogtreecommitdiff
path: root/doc/lispref/eval.texi
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-04-22 10:42:09 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2020-04-22 10:43:46 -0700
commit400ff5cd195e81204edd9c69fa1b8bc3cb66b42d (patch)
tree4fcc5d46acfb6a465e8fd7a37d7a1d0447ced8ae /doc/lispref/eval.texi
parentd2836fe71b30dedb39a8d6e1b1705cece30dcf63 (diff)
downloademacs-400ff5cd195e81204edd9c69fa1b8bc3cb66b42d.tar.gz
Improve wording about constants
Thanks to Štěpán Němec and Drew Adams for reviews of recent changes. * doc/lispref/eval.texi (Quoting): Give an example. * doc/lispref/lists.texi (Association Lists): Simplify example code. * doc/lispref/objects.texi (Lisp Data Types) (Constants and Mutability): Clarify wording.
Diffstat (limited to 'doc/lispref/eval.texi')
-rw-r--r--doc/lispref/eval.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/lispref/eval.texi b/doc/lispref/eval.texi
index 021604c5142..baddce4d9c9 100644
--- a/doc/lispref/eval.texi
+++ b/doc/lispref/eval.texi
@@ -606,6 +606,12 @@ Here are some examples of expressions that use @code{quote}:
@end group
@end example
+ Although the expressions @code{(list '+ 1 2)} and @code{'(+ 1 2)}
+both yield lists equal to @code{(+ 1 2)}, the former yields a
+freshly-minted mutable list whereas the latter yields a constant list
+built from conses that may be shared with other constants.
+@xref{Constants and Mutability}.
+
Other quoting constructs include @code{function} (@pxref{Anonymous
Functions}), which causes an anonymous lambda expression written in Lisp
to be compiled, and @samp{`} (@pxref{Backquote}), which is used to quote