From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.bugs Subject: bug#68236: [PATCH] help.el: allow help-quick to use local commands/quick-sections Date: Thu, 4 Jan 2024 08:45:50 -0500 Message-ID: <721ABC11-E691-43F9-9034-F375240C2E20@gmail.com> References: <1B0F351A-C393-4C1B-B883-814F2C33E802@gmail.com> <83a5ply2ca.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_BA2E0AC0-2B62-4174-AF56-0BA1F746360E" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11724"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68236@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 04 14:47:26 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 1rLO4D-0002rJ-Qy for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Jan 2024 14:47:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rLO3r-00029o-EH; Thu, 04 Jan 2024 08:47:04 -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 1rLO3m-00023y-VZ for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 08:46: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 1rLO3m-0002Cc-N1 for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 08:46:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rLO3q-0002Y1-Bi for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 08:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: JD Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jan 2024 13:47: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.17043759748625 (code B ref 68236); Thu, 04 Jan 2024 13:47:02 +0000 Original-Received: (at 68236) by debbugs.gnu.org; 4 Jan 2024 13:46:14 +0000 Original-Received: from localhost ([127.0.0.1]:53901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLO34-0002Ev-5W for submit@debbugs.gnu.org; Thu, 04 Jan 2024 08:46:14 -0500 Original-Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:58665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLO32-000265-HZ for 68236@debbugs.gnu.org; Thu, 04 Jan 2024 08:46:13 -0500 Original-Received: by mail-qt1-x829.google.com with SMTP id d75a77b69052e-427f000385bso2408731cf.1 for <68236@debbugs.gnu.org>; Thu, 04 Jan 2024 05:46:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704375963; x=1704980763; darn=debbugs.gnu.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=+OoHXik6AlcaAN5lYbOupOGVGSiAgAncUukIywcNgRg=; b=apEey3WoMxYDdrNfM3iJzo9+y6eORoJRG0HCRpbBZx+z7t2PN+vlL97tWsMiVpjgwF r1Ba5qDMBK2GjtmmcGD1uf9ase/vxziOxtogEwHS7uEK6gwBsIP7nKiTXPg0BJUi7GO0 WZBr2JDTLfF2Gd/pRKN9LDaKPtLRkaKIV0fMMxCvWtIbQi0RDoSrrq1tBfJW9soZzJKq 0Cn9M3/+wO1BhGcipt8ELegat7aJMWhUfloCTvgjn/Wje7o8hI8MZCHFPdn2U7pSIrKm 0bK0KPEJp1VtXASxAuUW4q/BSHW5Hq9B49inoWC6ZhbU49cyEq5+R5njmZrzBZkkjgQg g4Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704375963; x=1704980763; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+OoHXik6AlcaAN5lYbOupOGVGSiAgAncUukIywcNgRg=; b=umDL4GpDO8pWUmqPgMx2LO43DB0Q1xbHOKr04zXiNacFLDRpiINjVgUekMOHoucZcr 2FJwal7eDRO7b1NfD0yix+S16iWlMVL4GRGskI5XMPJlajzdalOoacfPWttmi3FlD5qW ZL84sa9bbQFsTcJCkqN9OFijpdrWPPe0cbJCKz8+j8uc1wsy4xiQbvPWYDbPN2So62kz lkV9wQGBmN4DMS0nXrLFSUIGYvvp0YS7xeDRqSZ4RIgyVR1FGQx00yatDMn53Ze1Qiin BNlPGDTae5HQdj7o54ce19UJZebYMg+nHDpojm2pXWoff1SN4OJKMA6ZjyQw+QBnYarP yhOg== X-Gm-Message-State: AOJu0YxjS0VUVG4b0hN1pd3Wu0D7HIzNyopIvam/6PszKYqHRhmJxJuQ 4G6Huw40zisxRqbznbAGskhf5izqd9dbGA== X-Google-Smtp-Source: AGHT+IEoJw7Ng/iKdrg3F8WTmIgvGWBzgmP21/9Hp3mP+tyKOqhrDPox8VDBDOkffV7MzYltDxeMFg== X-Received: by 2002:a05:622a:1a1b:b0:429:7102:4db with SMTP id f27-20020a05622a1a1b00b00429710204dbmr711053qtb.129.1704375963052; Thu, 04 Jan 2024 05:46:03 -0800 (PST) Original-Received: from smtpclient.apple (cm-24-53-187-34.buckeyecom.net. [24.53.187.34]) by smtp.gmail.com with ESMTPSA id bv14-20020a05622a0a0e00b0042835859362sm2190272qtb.50.2024.01.04.05.46.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jan 2024 05:46:01 -0800 (PST) In-Reply-To: <83a5ply2ca.fsf@gnu.org> X-Mailer: Apple Mail (2.3774.300.61.1.2) 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:277312 Archived-At: --Apple-Mail=_BA2E0AC0-2B62-4174-AF56-0BA1F746360E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jan 4, 2024, at 2:39=E2=80=AFAM, Eli Zaretskii = wrote: >=20 > 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. For example, an org user may (add-to-list 'help-quick-sections '("Org" (org-ctrl-c-star . "Compute table/change heading ") (org-ctrl-c-ret . "Table hline/insert heading"))) so that from org-buffers, C-h C-q adds a new section: Org =20 C-c * Compute table/change heading=20 C-c RET Table hline/insert heading =20 Most likely users willing to customize `help-quick-sections=E2=80=99 = would remove existing sections with commands they know well. =20 > In any case, such a change will need suitable changes for > documentation. Do you mean documentation for the `help-quick-sections' variable? How = about turning this into a defcustom? This would allow more advanced = users to fully customize what =E2=80=9Cquick help=E2=80=9D they want.= --Apple-Mail=_BA2E0AC0-2B62-4174-AF56-0BA1F746360E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Jan 4, 2024, at 2:39=E2=80=AFAM, Eli Zaretskii = <eliz@gnu.org> wrote:

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.

For = example, an org user may

(add-to-list = 'help-quick-sections
            =  '("Org"
      = (org-ctrl-c-star . "Compute table/change heading ")
  =     (org-ctrl-c-ret . "Table hline/insert = heading")))

so that from org-buffers, C-h C-q = adds a new section:

Org     =                     =          
C-c *   Compute = table/change heading 
C-c RET Table hline/insert heading =   

Most likely users willing to = customize `help-quick-sections=E2=80=99 would remove existing sections = with commands they know well.  

In any = case, such a change will need suitable changes for
documentation.

Do you mean documentation for = the `help-quick-sections' variable?  How about turning this into a = defcustom?  This would allow more advanced users to fully customize = what =E2=80=9Cquick help=E2=80=9D they want.
= --Apple-Mail=_BA2E0AC0-2B62-4174-AF56-0BA1F746360E--