]> git.eshelyaron.com Git - emacs.git/commit
(help-fns-function-name): New function
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 21 Mar 2024 23:40:20 +0000 (19:40 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sun, 24 Mar 2024 14:19:40 +0000 (15:19 +0100)
commit44afe0596b64c7ca0c5f72ca33e8f56fb3dd1f7c
treef4176d84a054a5513d8ffb852349c81796562b83
parent274bb6e39c43078c60275c896db58ddfc91f7e3c
(help-fns-function-name): New function

Consolidate code used in profiler and help--describe-command,
and improve it while we're at it.
Also use #' to quote a few function names along the way.

* lisp/help-fns.el (help-fns--function-numbers, help-fns--function-names):
New vars.
(help-fns--display-function): New aux function.
(help-fns-function-name): New function, inspired from
`help--describe-command`.

* lisp/help.el (help--describe-command): Use `help-fns-function-name`.
(help--for-help-make-sections): Remove redundant "" arg to `mapconcat`.

* lisp/profiler.el (profiler-format-entry, profiler-fixup-entry):
Delete functions.
(profiler-report-make-entry-part): Use `help-fns-function-name` instead.
(profiler-report-find-entry): Use `push-button`.

* lisp/transient.el (transient--debug): Use `help-fns-function-name`
when available.

(cherry picked from commit a1f8702e8345254e6898d35e554bdc06ab09c3ca)
etc/NEWS
lisp/bind-key.el
lisp/help-fns.el
lisp/help.el
lisp/profiler.el
lisp/transient.el