1.0.43.63: storing function documentation under names as well
authorNikodemus Siivola <nikodemus@random-state.net>
Sat, 16 Oct 2010 10:06:18 +0000 (10:06 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Sat, 16 Oct 2010 10:06:18 +0000 (10:06 +0000)
commitce2a580a469d285e7054ada13ef456e3dad08a34
tree63f125b9179e95f31f0606283cf46fac1ee2d98e
parentec0e9da75fd4ca7206df53854c4ab74713b1ef05
1.0.43.63: storing function documentation under names as well

 Since 1.0.29.24 we have stored function documentation exclusively in
 the function objects. Turns out this isn't a pure win:

   (setf (symbol-function 'foo) #'car)

   (setf (documentation 'foo 'function) "Return the name of frobniz.")

 should not change the docstring of #'CAR.

 So, when setting the docstring of a function name, store it in
 RANDOM-DOCUMENTATION instead of in the simple-fun.

 Conversely, when looking up the docstring for a function name, first
 look in RANDOM-DOCUMENTATION and only then in the bound function.
NEWS
src/pcl/documentation.lisp
tests/interface.impure.lisp
version.lisp-expr