From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65092: 30.0.50; C-h f shows malformed description for vc-mode Date: Sat, 05 Aug 2023 14:50:04 +0300 Message-ID: <83o7jlso7n.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39640"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65092@debbugs.gnu.org To: Eshel Yaron , Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 05 13:50:12 2023 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 1qSFnO-000A5D-OQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Aug 2023 13:50:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSFnI-0000KA-1O; Sat, 05 Aug 2023 07:50:04 -0400 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 1qSFnG-0000IA-Ri for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 07:50:03 -0400 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 1qSFnG-0006k8-IQ for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 07:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSFnG-0000xh-DN for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 07:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Aug 2023 11:50: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.16912361993684 (code B ref 65092); Sat, 05 Aug 2023 11:50:02 +0000 Original-Received: (at 65092) by debbugs.gnu.org; 5 Aug 2023 11:49:59 +0000 Original-Received: from localhost ([127.0.0.1]:55988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSFnD-0000xM-0Q for submit@debbugs.gnu.org; Sat, 05 Aug 2023 07:49:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSFnA-0000x9-LB for 65092@debbugs.gnu.org; Sat, 05 Aug 2023 07:49:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSFn5-0006dl-5u; Sat, 05 Aug 2023 07:49:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=pTIjjNKQOwpjKaNvxPnz5ZzMLm+xItkgBpMQTSxt9mI=; b=pcZUD+YtRiL3ZRecp59e TjbRqkFfs5vzpT+iE2Eow8VTL3uCNGehKnDeVHoA3nZMavUjfcyfgJ7thKugxrlje7GmLojSgGBo+ kyYzHyV14t+26ZWAEPKLL2LfAq8qrFDuhD1rX1U+Un5HNNPzTV7Dqb+WlR92rrSBN23YJMHYVIkPw z1yyg5JO3wEMgfbda2qi/5FwOjYrjv0vvnfimpW3y07TL8AMJBo/KAfReY05pkcR6HPK0tzoirdH9 EwIAK2bTtDDJz+ENgTGjAW1FA/Av0w4znGK7oKq+IijmcVeT9ytWRcwanoUfGUIjoLzEZwhcii7iN 1NT+Gm+0KIPNGA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSFn4-0001Jp-KQ; Sat, 05 Aug 2023 07:49:50 -0400 In-Reply-To: (bug-gnu-emacs@gnu.org) 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:266771 Archived-At: > Date: Sat, 05 Aug 2023 14:25:11 +0300 > From: Eshel Yaron via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > 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--- Probably because vc-mode is a "dummy function", whatever that means. IOW, we are shooting ourselves in the foot, it seems like. Adding Andrea.