From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: bug#36767: 26.1; request: add more quick keys to the *Help* buffer Date: Sat, 25 Sep 2021 18:22:42 +0200 Message-ID: References: <87mtrrq7t7.fsf@gnus.org> <87eed0nsez.fsf@mail.linkov.net> <83bl83zp5h.fsf@gnu.org> <83y27nvnb4.fsf@gnu.org> <83ilyrvgda.fsf@gnu.org> <83h7ebv39d.fsf@gnu.org> <838rznusle.fsf@gnu.org> <87a6k2nlr6.fsf@mail.linkov.net> <83mto2rlyz.fsf@gnu.org> <83bl4hrxtu.fsf@gnu.org> <837df4r99m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13481"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: larsi@gnus.org, juri@linkov.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 25 18:23:35 2021 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 1mUASc-0003IM-D2 for ged-emacs-devel@m.gmane-mx.org; Sat, 25 Sep 2021 18:23:35 +0200 Original-Received: from localhost ([::1]:53094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUASb-0003X4-Fb for ged-emacs-devel@m.gmane-mx.org; Sat, 25 Sep 2021 12:23:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUARv-0002nq-0a for emacs-devel@gnu.org; Sat, 25 Sep 2021 12:22:52 -0400 Original-Received: from mail-oln040092065053.outbound.protection.outlook.com ([40.92.65.53]:22872 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUARr-0005N8-QN; Sat, 25 Sep 2021 12:22:50 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ole2jzTaf/owBFxDLKMrrsjUWfNKs4fFcuacvKkjs9a0buWvdxrC0dQLUXP7E2dBTRftsAIqHS3Vf0ec95kAyDbtkN7G4N6DjV0WY+qcY4TReNh6X2pvLFcuLiX+uiFNeAQwRMBB5V1Obi+ESokx3kSuwXz6+0PJauJ//qso5vXCTTnRnutTj/xiXLuZp84YyBNPka+ytl5VPiGD1rI5FVD8NuuQhd6qotjYEnK/PabukefxmUvVqhFjRfP4jVQApWEoEXZnQkkEg6xBZ2dF8+4vfI3whBieaw67+1jTITvPlVKB1AMKj4crnxFlAQM9FDhO6WrFfW/rpKivdvSrfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=xP9v0cp7PQ+/81GHe/0n848gZQiLoZTS+HaqGZPUk/M=; b=IlLF1cEebHlYD0CklSZr9tJCxXuAtXgoktsKxlyUsfEDNCbUUbG/qY9RCkTC7H7/oXx/4c3Yi/0n0mVsenyXEoM9BmbISinLNUXymkXFOcI6jSWLymYC1B1Mx6t8M3THFU19eqMhYrHMi277JzL9wbwKUis+NsvrAHgRYAbjncKG9UhcRsBCbZ8fJtQ/jBYYiGVYvkM1IH0rKN7J0/iaOZaLSsI/7c/B/zMRcu8IsYBals5kcNzxa7umWx2OHt4zMifQ1CWslxit652QW/yojrWFBGqRC0xE+CWCqR2wmWPSk7YkOiasF8y3o/6stAhY7gItPLy+m5MkhxBXooHjQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xP9v0cp7PQ+/81GHe/0n848gZQiLoZTS+HaqGZPUk/M=; b=jdUcBkdPZdNmGrizelbKHBpXOYC8GjjVtEKc4s/318EWdaeH8d/HHbGf83j8PrgA609anUsdW9g0uE/cgK92Lmx1ksE5umSVXzFg3uWUtVzCGdDBdGjzFPbkOIisSXh9NtmfmXlbrhzdwy99q4YL0JtiSxlVrvBKMSawqdz+p8LA4xbK5cdjyOEOO52mWqe3BvYrRCZDPyBcojS7+E0SMeuDV7E8I7a3LqA2k2nRuWhQT8yhuT+YRiGEyJpcoXfM6YH2Bjmwk6k0DJpm+NN5e6LMJzGvGD9xQ5+TN4rYmPB0C4sp2rNHBnxx48ykRUcjkBPvqBhv3FZEqsK1fQuzoA== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AM9PR09MB5124.eurprd09.prod.outlook.com (2603:10a6:20b:309::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Sat, 25 Sep 2021 16:22:44 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::c55c:ece5:bed2:a9dc]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::c55c:ece5:bed2:a9dc%9]) with mapi id 15.20.4544.020; Sat, 25 Sep 2021 16:22:44 +0000 In-Reply-To: <837df4r99m.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 25 Sep 2021 17:59:33 +0300") X-TMN: [kdejm8TWc7TApV4HiVzS295yxOrfwgnK] X-ClientProxiedBy: HE1PR0301CA0021.eurprd03.prod.outlook.com (2603:10a6:3:76::31) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <877df462wd.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by HE1PR0301CA0021.eurprd03.prod.outlook.com (2603:10a6:3:76::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Sat, 25 Sep 2021 16:22:43 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ffc406ee-a5d3-4ef2-ed5d-08d98040b41d X-MS-TrafficTypeDiagnostic: AM9PR09MB5124: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: V87fn72LVNQCtFd25JpzvAKc8aPVvW4mJDPFXXof4woLyO9L6wGuIhiufLT92yLpJTx5+ya9L8eULTrF3Vb8aMerJhf0s+ncjCFiWj2KufG9LNbsMYa3kl8FLjNxWoSbNshSrG3rxeXvERNGN9o/sgp+k+mqWk7VZ9h8kUMgJY3aC2DKyKo1rq9SjnCSswqeT0wzkGWpzLqyswXGRVsCIThHpWRfg+JGqvexit0Lci1PK4XwKDwJOaQTXJEDVUmCp+FFHE3d8IXF4vhqo9XovDQ7aP4wa16UpFu15f4M0COlekXBjkiXMDjNsFmeN/DkWj5SriB0wpSXRlKNpEmmf7mnGH7YRc8JANkOg2xZCk4O+foPHOcAcpGStS+dSRVdxSSl34BcwCvKEzkD//sv6Es3W3odcVsAQ1eT1DAJi6ZP0/JXZqQ7Mbt5T0iyTqle X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vxWmJQF63TIcV4pxsVJtNzP5/JCxIoQ+JgbOcWz/+eggSmPfrKQEPYoKSHLbBR5cfpNMcKU2GoOfVDKXUkFlrQigpJdxVzPKV9HFNzSTYWBbeQc8scqH2jOw8S6uEY3kaHqWn3/9/dkA/i4wICBHdg== X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-72e6e.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: ffc406ee-a5d3-4ef2-ed5d-08d98040b41d X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2021 16:22:44.1412 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR09MB5124 Received-SPF: pass client-ip=40.92.65.53; envelope-from=arthur.miller@live.com; helo=EUR01-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:275460 Archived-At: Eli Zaretskii writes: >> From: Arthur Miller >> Cc: juri@linkov.net, larsi@gnus.org, emacs-devel@gnu.org >> Date: Sat, 25 Sep 2021 16:41:34 +0200 >> >> > Thanks, but I'd prefer a prefix command, so that you wouldn't need to >> > prompt for the key sequence, but expect the user to provide it >> > already. For example, "C-h M-h s" would show the definition of the >> > function or variable. >> >> I am sorry, but I don't really understand what you mean here. You would like to >> be able to type: C-u C-h M-h s, intead of C-h M-h s? > > No, I'd prefer not to be shown a prompt for another key. Try the attached patch. It shows no prompt, so you can just type C-h M-h s and it will pop source in another window. I don't have any feel of being "prompted". >> The obivous alternative I see is to globally define help-mode commands > > Some of them, yes. But that is extra work; this solution does it for free, and will work with future commands in help-mode, if they get defined, no? >> Maybe there is other way; but I am not aware of it. > > The other way is to have a prefix key "C-h M-h". What is the difference and extra benefit? It is still "same typing"? It effectively acts like a prefix key since it is executed in help-mode buffer; it is same effect as putting help-mode-map on a prefix key. And one can rebind the function to any key; maybe someone can find some easier to type shortcut than C-h M-h? I am sorry but I probably just don't understand what you are asking for.