bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#65092: 30.0.50; C-h f shows malformed description for vc-mode


From: Stefan Monnier
Subject: bug#65092: 30.0.50; C-h f shows malformed description for vc-mode
Date: Sun, 25 Feb 2024 13:20:03 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> I seems to have stumbled upon an issue with type inference on the master
> branch that causes `describe-function` to display the following
> malformed description for the function `vc-mode`:
>
>     vc-mode is a native-compiled Lisp function in โ€˜vc-hooks.elโ€™.
>
>     (vc-mode &optional ARG)
>
>     Inferred type: (function (&optional t) (member Version Control minor
>     mode.  This minor mode is automatically activated whenever you visit a
>     file under control of one of the revision control systems in
>     `vc-handled-backends'.  VC commands are globally reachable under the
>     prefix `\[vc-prefix-map]': \{vc-prefix-map}))
>
>     Version Control minor mode.
>     This minor mode is automatically activated whenever you...
>
> To reproduce, do `C-h f vc-mode RET` in `emacs -Q`.
>
> Basically, it looks like the inferred type somehow includes the
> function's docstring verbatim:
>
> --8<---------------cut here---------------start------------->8---
> (comp-function-type-spec 'vc-mode)
> => ((function (&optional t) (member "Version Control minor mode.
> This minor mode is automatically activated whenever you visit a file under
> control of one of the revision control systems in `vc-handled-backends'.
> VC commands are globally reachable under the prefix `\\[vc-prefix-map]':
> \\{vc-prefix-map}")) . inferred)
> --8<---------------cut here---------------end--------------->8---

This output is actually "correct" ๐Ÿ™
I've just pushed a fix for it in `master` by giving an actual body to
the function, in addition to its doc string.


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]