From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65092: 30.0.50; C-h f shows malformed description for vc-mode Date: Sun, 25 Feb 2024 13:20:03 -0500 Message-ID: References: Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15031"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65092@debbugs.gnu.org To: Eshel Yaron Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 25 19:41:28 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1reJRH-0003lI-N2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Feb 2024 19:41:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reJQV-0007g5-Oj; Sun, 25 Feb 2024 13:40:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1reJQU-0007fM-4a for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 13:40:38 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1reJQT-0000RO-Sf for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 13:40:37 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1reJQs-0001DP-Mk for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 13:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Feb 2024 18:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65092 X-GNU-PR-Package: emacs Original-Received: via spool by 65092-submit@debbugs.gnu.org id=B65092.17088864324552 (code B ref 65092); Sun, 25 Feb 2024 18:41:02 +0000 Original-Received: (at 65092) by debbugs.gnu.org; 25 Feb 2024 18:40:32 +0000 Original-Received: from localhost ([127.0.0.1]:37962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reJQM-0001BB-La for submit@debbugs.gnu.org; Sun, 25 Feb 2024 13:40:31 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:15048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reJ77-0000Cc-SY for 65092@debbugs.gnu.org; Sun, 25 Feb 2024 13:20:38 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 09015441FD7; Sun, 25 Feb 2024 13:20:06 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1708885204; bh=RS21QRFFSvtxBJLWYtMgpBUFsMMaouJGWoKuk8sjklE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=CyJHnGr1AZw9dwUut0WT8rgxqUHnNxUKXEhz8+w0kP/34guORdc+r9XOv2HQh+A3c fkK92qPMTHIeNXmGODDgw93V7ZDPw2//OxqpJ6CB+fFDJm31lt+cx8+7e1ZEr1nb6P r/92kk8LGwZlaoi5ibhWHvB+jPUnunyfD0Z5fqI+bOHzeoLIHoHJGzSigGtqH0fP7O Fx3ghpqQvCAj2Co+tb9aDcXarnnP5jVTDfsZbwNnTLICIV226UZDKsR2GLRwl2PuPD 0btjEfJIlR1UxvR2qVv6GoqjivwVe8DwmYVC6INerNdtsfrVjw9T9/Ur6IWrgC5KFw txoVzQoglU/Jg== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 80C3B441D73; Sun, 25 Feb 2024 13:20:04 -0500 (EST) Original-Received: from alfajor (unknown [45.72.205.238]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5D3A51203FF; Sun, 25 Feb 2024 13:20:04 -0500 (EST) In-Reply-To: (Eshel Yaron's message of "Sat, 05 Aug 2023 14:25:11 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280638 Archived-At: > 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 =E2=80=98vc-hooks.el=E2= =80=99. > > (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) > =3D> ((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" =F0=9F=99=81 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