]> git.eshelyaron.com Git - emacs.git/commit
(help-fns-function-description-header): Print functions' type
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 22 Mar 2024 01:08:58 +0000 (21:08 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sun, 24 Mar 2024 14:20:16 +0000 (15:20 +0100)
commit76c8fa47710ab2e6f8c02256adb694133dfaff68
treef9e3b0c25873262bf8c25f6d432bd0f98551dfea
parent8a539661d9336240db0e1dcd3fefe15965bc04ec
(help-fns-function-description-header): Print functions' type

Instead of choosing English words to describe the kind of function,
use the actual type of the function object (from `cl-type-of`)
directly, and make it a button to display info about that type.

* lisp/help-fns.el (help-fns-function-description-header): Use the
function's type name in the description instead of "prose".
Use `insert` instead of `princ`, so as to preserve the text-properties
of the button.

* lisp/emacs-lisp/cl-extra.el (cl-help-type): Move to `help-mode.el`
and rename to `help-type`.
(cl--describe-class): Adjust accordingly.

* lisp/help-mode.el (help-type): New type, moved and renamed from
`cl-extra.el`.

(cherry picked from commit accd79c93935b50dddfcd6fe7fb6912c80bcddb1)
lisp/emacs-lisp/cl-extra.el
lisp/help-fns.el
lisp/help-mode.el