setf documentation macro

Bug #643958 reported by mon_key
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Low
Unassigned

Bug Description

(defmacro tt--foo (x)
  (+ x x))

setf'ing documentation for a macro doesn't work:

(setf (documentation 'tt--foo 'function)
      "... won't doc ...")

However, this does:

(setf (documentation (macro-function 'tt--foo) 'function)
      "... will doc ...")

SBCL 1.0.42.25 built from git

Revision history for this message
Stas Boukarev (stassats) wrote :

The attached patch fixes it.

tags: added: review
Revision history for this message
Nikodemus Siivola (nikodemus) wrote :

Thanks for the patch!

Changed in sbcl:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Nikodemus Siivola (nikodemus) wrote :

In SBCL 1.0.42.49.

Changed in sbcl:
status: Triaged → Fix Committed
tags: removed: review
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.