Fixes lp#643958.
Patch Stas Boukarev, test-case by yours truly.
Nice and simple, so going in mid-freeze.
in frames that do not have sufficient debug information.
* bug fix: exceeding FD_SETSIZE limit now results in an sensible error
(lp#316068)
+ * bug fix: (SETF DOCUMENTATION) of a macro works properly. (lp#643958, thanks
+ to Stas Boukarev)
changes in sbcl-1.0.42 relative to sbcl-1.0.41
* build changes
(defmethod (setf documentation) (new-value (x symbol) (doc-type (eql 'function)))
(when (and (legal-fun-name-p x) (fboundp x))
- (setf (documentation (symbol-function x) t) new-value)))
+ (setf (documentation (or (macro-function x) (symbol-function x)) t)
+ new-value)))
(defmethod (setf documentation) (new-value (x symbol) (doc-type (eql 'compiler-macro)))
(awhen (compiler-macro-function x)
(flet ((zoo () (gogo)))
(defmethod gogo () nil)
(describe 'gogo)))
+
+(defmacro bug-643958-test ()
+ "foo"
+ :ding!)
+
+(with-test (:name :bug-643958)
+ (assert (equal "foo" (documentation 'bug-643958-test 'function)))
+ (setf (documentation 'bug-643958-test 'function) "bar")
+ (assert (equal "bar" (documentation 'bug-643958-test 'function))))
\f
;;;; success
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.42.48"
+"1.0.42.49"