(setf documentation) modifies docstrings of other functions
Bug #565737 reported by
Stas Boukarev
This bug report is a duplicate of:
Bug #661631: wanted: different docs for same function under different names.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Committed
|
Low
|
Unassigned |
Bug Description
(documentation 'sb-c::
but that docstring comes from src/code/
(setf (documentation 'process-
"A function that is called when PROCESS changes its status.
The function is called with PROCESS as its only argument.")
Doing (require 'sb-concurrency) makes
(documentation 'sb-c::
and sb-mailbox has (setf documentation) with that docstring.
As far as I can tell this only concerns functions generated by DEFSTRUCT.
Changed in sbcl: | |
importance: | Undecided → Low |
status: | New → Triaged |
To post a comment you must log in.
I guess because these functions are implemented as closures over a structure, like the following:
(defun foo ()
(lambda ()))
(defun test ()
(setf (documentation (foo) 'function) "DOCSTRING")
(documentation (foo) 'function))
(test) => "DOCSTRING"