changeset 5609:3152c2c21461

Correct and clarify docstring, #'load-time-value lisp/ChangeLog addition: 2011-12-09 Aidan Kehoe <kehoea@parhasard.net> * cl-macs.el (load-time-value): Clarify the docstring here, thanks for pointing out its inaccuracy Julian Bradfield.
author Aidan Kehoe <kehoea@parhasard.net>
date Fri, 09 Dec 2011 08:38:07 +0000
parents 4cffcc80b299
children d69ea1ff4ce3
files lisp/ChangeLog lisp/cl-macs.el
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Dec 08 10:05:14 2011 -0500
+++ b/lisp/ChangeLog	Fri Dec 09 08:38:07 2011 +0000
@@ -1,3 +1,9 @@
+2011-12-09  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* cl-macs.el (load-time-value):
+	Clarify the docstring here, thanks for pointing out its inaccuracy
+	Julian Bradfield.
+
 2011-11-14  Vin Shelton  <acs@xemacs.org>
 
 	* faces.el: When the default background was changed from light to
--- a/lisp/cl-macs.el	Thu Dec 08 10:05:14 2011 -0500
+++ b/lisp/cl-macs.el	Fri Dec 09 08:38:07 2011 +0000
@@ -3891,8 +3891,10 @@
 
 ;;;###autoload
 (defmacro load-time-value (form &optional read-only)
-  "Like `progn', but evaluates the body at load time.
-The result of the body appears to the compiler as a quoted constant."
+  "Evaluate FORM once at load time if byte-compiled.
+
+The result of FORM is returned and stored for later access.  In
+interpreted code, `load-time-value' is equivalent to `progn'."
   (list 'progn form))
 
 ;;;###autoload