]> git.eshelyaron.com Git - emacs.git/commit
(function-documentation): Make it work for the remaining cases
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 13 Jan 2023 22:56:04 +0000 (17:56 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 13 Jan 2023 22:56:04 +0000 (17:56 -0500)
commitf5d8aa6edacc8f4d06bb78010e408034b83f98e0
tree8d3431fcbbca2820f264b64e7292114d41fb9f11
parentf56fea2fcc0a3fbb261628ad887a0bbee72820e3
(function-documentation): Make it work for the remaining cases

* lisp/simple.el (function-documentation):
Use `internal-subr-documentation` and make it work also with symbols
and macros.

* src/doc.c (Fsubr_documentation): New function, extracted
from Fdocumentation.
(syms_of_doc): defsubr it.
(Fdocumentation): Don't handle subrs and module functions here.
lisp/simple.el
src/doc.c