]> git.eshelyaron.com Git - emacs.git/commit
oclosure.el (accessor): New type
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 22 Dec 2021 15:06:17 +0000 (10:06 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 22 Dec 2021 15:06:17 +0000 (10:06 -0500)
commitf44ee8cd5321b508462e03563e1d305debe2228d
tree320ff0e74b8df7fda1ae80cd406d08b6f30aabe1
parent230617c90cf97285b554cc85de135a46b7587a4d
oclosure.el (accessor): New type

* lisp/emacs-lisp/oclosure.el (accessor): New (OClosure) type.
(oclosure-define): Mark the accessor functions
as being of type `accessor`.
(oclosure--accessor-cl-print, oclosure--accessor-docstring): New functions.

* src/doc.c (store_function_docstring): Improve message and fix check.
* lisp/simple.el (function-docstring) <accessor>: New method.
* lisp/emacs-lisp/cl-print.el (cl-print-object) <accessor>: New method.
lisp/emacs-lisp/cl-print.el
lisp/emacs-lisp/crm.el
lisp/emacs-lisp/oclosure.el
lisp/simple.el
src/doc.c