[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#69935: [PATCH] (help-fns-function-description-header): Print functio
From: |
Andrea Corallo |
Subject: |
bug#69935: [PATCH] (help-fns-function-description-header): Print functions' type |
Date: |
Fri, 22 Mar 2024 11:39:57 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:
> Tags: patch
>
> The patch below changes the first line of `C-h f` from something like:
>
> car is a built-in function in ‘C source code’.
>
> to
>
> car is a primitive-function in ‘C source code’.
>
> i.e. print the actual type rather than an English description.
> The type is buttonized so users can click on it to see a description of
> the type (and its super/subtypes).
>
> Beside exposing those types (and their related information), another
> advantage is that it simplifies the code since we don't need to
> enumerate all the different kinds of functions we may have (well, we
> still do for those "function-like objects" which don't have a dedicated
> type such as macros, keymaps, aliases, keyboard macros, yadda yadda, but
> a single case covers all of special forms, primitive functions,
> byte-code functions, module functions, and native-compiled functions).
>
> Any comment/objection?
Hi Stefan,
I like it thanks! I think we might want to highlight the
inferred/declared argument/ret types as well WDYT?
I might implement something along this line once your patch is.
Thanks
Andrea