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: Thu, 04 Jan 2024 09:39:17 +0200 Message-ID: <83a5ply2ca.fsf@gnu.org> References: <1B0F351A-C393-4C1B-B883-814F2C33E802@gmail.com> 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="316"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68236@debbugs.gnu.org To: JD Smith Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 04 08:40:17 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 1rLIKv-000AS7-2l for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Jan 2024 08:40:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rLIKe-0000jH-HW; Thu, 04 Jan 2024 02:40:00 -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 1rLIKd-0000j4-BT for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 02:39:59 -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 1rLIKd-0006aP-3L for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 02:39:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rLIKg-0003tE-JR for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 02:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jan 2024 07:40:02 +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.170435398314917 (code B ref 68236); Thu, 04 Jan 2024 07:40:02 +0000 Original-Received: (at 68236) by debbugs.gnu.org; 4 Jan 2024 07:39:43 +0000 Original-Received: from localhost ([127.0.0.1]:53558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLIKM-0003sX-Lp for submit@debbugs.gnu.org; Thu, 04 Jan 2024 02:39:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLIKL-0003sK-AT for 68236@debbugs.gnu.org; Thu, 04 Jan 2024 02:39:42 -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 1rLIKB-0006Ym-T2; Thu, 04 Jan 2024 02:39:32 -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=hsZpE+l+6lU4bBhJ4NTgsoH/bdGUUFgqIJaZHq5Faqg=; b=Mnu16Iq9mkwYyBxvsI4I YocKLGA9WVQg4DqQKvXtHUxmTqpO3BFu1j29ftVBHWJcw8v0QUsZP6ebfO6YHHxkYlcz3/BqEPUJl JtqXgZ5k0qJY/hYWYTAaKUsXtQ6TBOwLxSjZ63CPYcq7Kbco4btVZTBDXGhVc7MCyTyGbpsr9jn2L lBQact0v1H5+ec2+Tm89H1AW/h8tirZghTvy8wyVvqAOqOKEN0FBAjbQqRN+NHpcHgi38TRZ6QAy7 j62y+/C2OlniydrWPmcLQgMQXXZeQWfy8Bmdfu6UJP/RbSJNfhS77B8j7mFszqFw5n4NiGX5AxAkS vYK16nkTrnI0zA==; In-Reply-To: <1B0F351A-C393-4C1B-B883-814F2C33E802@gmail.com> (message from JD Smith on Wed, 3 Jan 2024 22:08:56 -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:277297 Archived-At: > From: JD Smith > Date: Wed, 3 Jan 2024 22:08:56 -0500 > > Someone came up with the great idea of using help.el’s `help-quick' command for a personal “scratch pad” of useful/hard-to-remember bindings, and then to bind `help-quick-sections' locally in various modes. Unfortunately, `help-quick' first sets the buffer to *Quick Help* and then builds its list of command bindings and descriptions. This means that only the default value of `help-quick-sections’ will ever be consulted, and no local key bindings can be expressed. > > The fix is simple; build the list of quick help information first in the current buffer (from which C-h C-q is called) and then displaying it in the *Quick Help* buffer. With this, people can use quick help and its handy binding to prompt with their own personal hard-to-remember key bindings/command info. What’s cool is that help-quick omits “empty” sections, so you could even add a variety of sections, and they will appear if and only if bindings are actually available in the buffer where quick help is invoked. Please describe in more detail how would people use this for their personal "quick help", because I don't think I understand well enough what you have in mind. In any case, such a change will need suitable changes for documentation. Thanks.