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#68236: [PATCH] help.el: allow help-quick to use local commands/quick-sections Date: Wed, 10 Jan 2024 17:58:23 +0200 Message-ID: <83sf35mb8g.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="8342"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, 68236@debbugs.gnu.org, stefankangas@gmail.com To: JD Smith Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 10 16:59:29 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 1rNazI-0001zG-Q1 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Jan 2024 16:59:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNayy-0001ZK-Fc; Wed, 10 Jan 2024 10:59:09 -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 1rNayt-0001Yx-Os for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2024 10:59:04 -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 1rNayt-000087-Bp for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2024 10:59:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNayr-0003fr-Jk for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2024 10:59:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jan 2024 15:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68236 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 68236-submit@debbugs.gnu.org id=B68236.170490233214106 (code B ref 68236); Wed, 10 Jan 2024 15:59:01 +0000 Original-Received: (at 68236) by debbugs.gnu.org; 10 Jan 2024 15:58:52 +0000 Original-Received: from localhost ([127.0.0.1]:42546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNayh-0003fS-Jy for submit@debbugs.gnu.org; Wed, 10 Jan 2024 10:58:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNayf-0003fB-4b for 68236@debbugs.gnu.org; Wed, 10 Jan 2024 10:58:49 -0500 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 1rNayb-0008QD-13; Wed, 10 Jan 2024 10:58:45 -0500 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=UJ/S7VP1ThWtwCkqPEJjfayeiSw7RIWtUGVdLJyYy5M=; b=IfhNOyEzygRxo4wLwKER cLURzdetNsXKVkhLr8u1b8SIE00CGZP1kfbmprC5G6F4Aph/CSad23Eebd4Pf0KsdCgGDjH5uOjGB Ah2TlVEuHz+ehgueROEyo5kNJrs3bWm228HetbpBxl1S9TmC6JPX+GqAKFe1uVS74zm9c65Jv/15/ 8oEd3GWJE9UeiIlnmCphFM78+dtjjYYOW4KrthKHfy/AB/dYeieZFvsTnfi2kUKBelEGrGyAqtTTp +lrsUkaxZX6BwGsIZ1dvrMcj+gieiYUqiOPQlaAGj9cv5eaUOhbsOrI7xr0hR4+ZEeiB54jb1jxCr v7mtgWn4ElFnTA==; In-Reply-To: (message from JD Smith on Wed, 10 Jan 2024 10:46:22 -0500) 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:277768 Archived-At: > From: JD Smith > Date: Wed, 10 Jan 2024 10:46:22 -0500 > Cc: Eli Zaretskii , 68236@debbugs.gnu.org, > Philip Kaludercic > > But what about instead of a separate command to remember, just creating an (optional) section in the existing help-quick popup, for local commands? where-is-internal would consult the global keymap for the global commands, and the current buffer’s keymap for the locals. I think we should be careful not to add too much to what these commands display, since otherwise we'd reinvent "C-h b" again. The whole purpose of help-quick is to present a small list of the most useful commands and their bindings, and do it in a small window. As soon as the buffer is long enough to require scrolling, I think we will have lost.