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#69935: [PATCH] (help-fns-function-description-header): Print functions' type Date: Fri, 22 Mar 2024 09:25:58 +0200 Message-ID: <86edc220e1.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="20196"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69935@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 22 09:13:58 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 1rna2G-000518-OW for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Mar 2024 09:13:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rna1k-0002ex-Jc; Fri, 22 Mar 2024 04:13:24 -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 1rna1j-0002ds-0I for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2024 04:13:23 -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 1rna1i-0000rI-O3 for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2024 04:13:22 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rna2N-00078l-3M for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2024 04:14:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Mar 2024 08:14:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69935 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 69935-submit@debbugs.gnu.org id=B69935.171109520527315 (code B ref 69935); Fri, 22 Mar 2024 08:14:03 +0000 Original-Received: (at 69935) by debbugs.gnu.org; 22 Mar 2024 08:13:25 +0000 Original-Received: from localhost ([127.0.0.1]:58972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rna1k-00076L-5u for submit@debbugs.gnu.org; Fri, 22 Mar 2024 04:13:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rna1i-00075v-6a for 69935@debbugs.gnu.org; Fri, 22 Mar 2024 04:13:23 -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 1rnZI8-0007xX-7P; Fri, 22 Mar 2024 03:26:16 -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=vVMIx3uTUyfAHhwXK/QKJOy9GIwf0BNr/G1uwYwTAU4=; b=avAFnty/GbkwxdlETpYD ysAFf0s6xnHvEh7qffQgGWFI7/ILO+/m1cl1t70HFPkNXuaibvYs3PLhVmGLyzsg1w57iTqgfXq2Q k6CzspvPy+DTPeNbARRfodf0ecI5rb6GA9wlwPmL6iEF5fn04UyOjtSzg3CM5gku726xh3t5VZftK sI+YEHp7h8qwy0YAPKc/oB70XuYmzQXT9PxDsyL/curwbALKgatkMaVvkD3agkmBDNSUtLYRDBvI8 dOfrQlI8h/QL/95GYvH1fH5TOEb14ViPDT4O/BL8pq02dCQYGLD+uJsTVQM7uD2QVL+y00on74vek gUs7igAZ3O5qJA==; 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:281928 Archived-At: > Date: Thu, 21 Mar 2024 21:22:39 -0400 > From: Stefan Monnier via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > 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? No objections, but IMO this should be in NEWS, and the button and its purpose should be described in the user manual (where we document "C-h f"). Thanks.