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.devel Subject: Re: Inferred function types in the *Help* buffer Date: Wed, 24 May 2023 13:46:57 +0300 Message-ID: <83o7manh0e.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="20839"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 24 12:47:15 2023 Return-path: Envelope-to: ged-emacs-devel@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 1q1m1T-0005BS-1f for ged-emacs-devel@m.gmane-mx.org; Wed, 24 May 2023 12:47:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1m0m-0003rA-GC; Wed, 24 May 2023 06:46:32 -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 1q1m0l-0003qy-GJ for emacs-devel@gnu.org; Wed, 24 May 2023 06:46:31 -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 1q1m0l-0004s6-87; Wed, 24 May 2023 06:46:31 -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=K2SgoNqIUk6THqJSv+yvz434KKuAQT67XYLilkMXDZE=; b=NbSXAKhYRdUCn2e9OLON HXidq+XTzmQPiynRJoX5UOtm6mVNyxsx6h9fSyGOJ0WkqytnaJbJnxzbSgfF9wxPxtfiP5YW2Aqs/ i2gKm4tT0n1zKvVbDJGTxzq2/Ruoj50lJCW8a0+AQpZwmElANeqngfwhsIOBdtiX3hSSIEGvNQkJx SRGi4yLAqUwuyLrlkk3cvGP3ACn1TrLEEq1x3nphd5qbhy9zeDb8s6q4x8VlL8bkS4BOm+US21TW1 Sq0Oudy3wDRnsag5zcKvztIdDEC048EDtpxEvpB4EFas2nAp1JbVqYVrxr8nux9mH2hLXMOy/LZp7 g5A0kVD+AYDFiQ==; 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 1q1m0k-0004OE-77; Wed, 24 May 2023 06:46:31 -0400 In-Reply-To: (message from Andrea Corallo on Tue, 23 May 2023 16:44:08 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306294 Archived-At: > From: Andrea Corallo > Date: Tue, 23 May 2023 16:44:08 +0000 > > foo is a native-compiled Lisp function in > ‘~/.emacs.d/eln-cache/30.0.50-e29d76eb/test-a526a80f-5481bc95.eln’. Why does it name the .eln file, not its source .el file? Or is this the case when there's no .el file? > Signature: (foo N) > > Inferred type: (function (t) (or (member to-small too-big) (integer > 100 100))) Can you explain what is this "Inferred type" information about? > ATM I adds as well "Signature: " in front of the signature to > differentiate it from the type. But looking at it in restrospective it > might be not even necessary. We should probably preserve the current format of just showing the signature without any headings.