mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
* Introduce `help-display-function-type' customizable var (bug#65288).
* lisp/help-fns.el (help-display-function-type): New customizable var. (help-fns--signature): Make use of.
This commit is contained in:
parent
a563ea8963
commit
652e45b70d
@ -152,6 +152,12 @@ edited even if this option is enabled."
|
||||
:group 'help
|
||||
:version "28.1")
|
||||
|
||||
(defcustom help-display-function-type t
|
||||
"If non-nil, display the type of a function when available."
|
||||
:type 'boolean
|
||||
:group 'help
|
||||
:version "30.1")
|
||||
|
||||
(defun help--symbol-class (s)
|
||||
"Return symbol class characters for symbol S."
|
||||
(when (stringp s)
|
||||
@ -715,7 +721,8 @@ the C sources, too."
|
||||
(unless (and (symbolp function)
|
||||
(get function 'reader-construct))
|
||||
(insert high-usage "\n")
|
||||
(when-let* ((res (comp-function-type-spec function))
|
||||
(when-let* ((gate help-display-function-type)
|
||||
(res (comp-function-type-spec function))
|
||||
(type-spec (car res))
|
||||
(kind (cdr res)))
|
||||
(insert (format
|
||||
|
Loading…
Reference in New Issue
Block a user