aboutsummaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorJoakim Verona2011-09-19 11:37:46 +0200
committerJoakim Verona2011-09-19 11:37:46 +0200
commit4caed0bee59613be5d2a6c4afabcdc43222f953e (patch)
treed0c1debf666ef2107492e6cdd2bc8d6bb17de8a2 /src/eval.c
parentc139d20a0c582a2c8fe3766128092c32b692ac23 (diff)
parentc5b01d8c63cfd14c95a029540a6fb0da84537726 (diff)
downloademacs-4caed0bee59613be5d2a6c4afabcdc43222f953e.tar.gz
emacs-4caed0bee59613be5d2a6c4afabcdc43222f953e.zip
upstream
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c
index 57a273cd4aa..32b9d366fc3 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -475,6 +475,14 @@ usage: (setq [SYM VAL]...) */)
475 475
476DEFUN ("quote", Fquote, Squote, 1, UNEVALLED, 0, 476DEFUN ("quote", Fquote, Squote, 1, UNEVALLED, 0,
477 doc: /* Return the argument, without evaluating it. `(quote x)' yields `x'. 477 doc: /* Return the argument, without evaluating it. `(quote x)' yields `x'.
478Warning: `quote' does not construct its return value, but just returns
479the value that was pre-constructed by the Lisp reader (see info node
480`(elisp)Printed Representation').
481This means that '(a . b) is not identical to (cons 'a 'b): the former
482does not cons. Quoting should be reserved for constants that will
483never be modified by side-effects, unless you like self-modifying code.
484See the common pitfall in info node `(elisp)Rearrangement' for an example
485of unexpected results when a quoted object is modified.
478usage: (quote ARG) */) 486usage: (quote ARG) */)
479 (Lisp_Object args) 487 (Lisp_Object args)
480{ 488{