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: Sun, 26 Sep 2021 23:48:55 +0200 Message-ID: References: <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> <83wnn4pqo5.fsf@gnu.org> <5c5bc55d-13d2-af16-52d6-6fb2406b01ab@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23349"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , juri@linkov.net, larsi@gnus.org, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 26 23:50:17 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 1mUc2J-0005uF-Pp for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Sep 2021 23:50:17 +0200 Original-Received: from localhost ([::1]:54404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUc2I-0002ug-KA for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Sep 2021 17:50:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUc1F-0002Bn-TJ for emacs-devel@gnu.org; Sun, 26 Sep 2021 17:49:09 -0400 Original-Received: from mail-oln040092073075.outbound.protection.outlook.com ([40.92.73.75]:47314 helo=EUR04-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 1mUc18-0006q2-R1; Sun, 26 Sep 2021 17:49:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lmKKATg6ju5R7nVV2vsgEHpQ/GQ2ADtmL33i3rTAssn0L5C+sOUMFV0oOzM/jmjrsSwGYL+r5FKL66jnz682sDrAPnYRC4CatnBaGAuM6PdndA94elTDjDDGQA5aQVkw76snw0Um1Xey+uBJPKf5TPfkaZFN+nP8c84YnbEMp9WL0valQQD0V1i+rQBjGqj0lRszImhvlQcy7Mo7rOEb0p6/n+4CRqTRmXmDm6XMBYV6SUIbZO26gkSZXGOKMVdXiPzpnhzIKOCBfBfsj684ru6tGZ+bw2iU2NuZmZrNFm1dXg/UdsU0Do98JLy5WyaSZU9B/sA6EonWRXVqqoQwCg== 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=Jk6YWI6PayHKyHy8BUVQXbUjQuFfEZ6q6uk1NETFWp0=; b=O5/600AqKKblqL8iHpXwQo3li+8lnG3ojMsZLsryCoJGqDCEyYQc6sLVgMMcTVPpfJOcTcSxpFaQ7oqsH1xvyxlc60WjVoXetv6xO7eCup/vdzycGex/397VSfS5OtLBVhFSyNcj9+zwn9K2vnWtUS3ivPkOS0BlUbbI2S0RaCrvtsOpPbSvsnoJCR8uQAhPBRLG1jOXjfpt90hY2EZnLBb7lsCEALb5qbmicHgaPjhZ0jXpMvq0FOQiR/KmkwudnUX35YQ0u93qX9x5RBLVkmu9+yjTF4dstmokSdeagy6kkBukaXS8FWlK6Ye77NAjOgeTjYdJBqqBId97rjnE+w== 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=Jk6YWI6PayHKyHy8BUVQXbUjQuFfEZ6q6uk1NETFWp0=; b=nUilCCo+UEKH6hL4c7lY54bsZ4WfVI/ilFABdzEnlNesFH6J6Dp7WzoFn+xqyZUxvyKbQxr7b71rwk046qmlEN5D8U7GL7Z7aC1SRbgbaklZnBMg4Wjnrb8yVsug47FnyYwP5fKYeIskxdlj4q8M0ZDz+b6vC4kGjckxGBZxg0FkWaB2jN5tShgE1NDjPQFbkKuJ1BNzZboGibtH4WRWU35Deyu2d08CotHbgJpaY+oMa1NXR9HOaDX7fxOnqei7K9NSWDf6jBnAUtudZFr/plqzgQbZ/Qgg1/KdD8FrESZwCB/I7LNCLa73VPj3Hf5I0iIulr5MLavr6lGiCB8sMQ== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AM0PR09MB2466.eurprd09.prod.outlook.com (2603:10a6:208:d9::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.18; Sun, 26 Sep 2021 21:48:57 +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.021; Sun, 26 Sep 2021 21:48:57 +0000 In-Reply-To: (martin rudalics's message of "Sun, 26 Sep 2021 19:51:28 +0200") X-TMN: [xpsuFW2U54j6jLbzAxljVbYuvI7icVoD] X-ClientProxiedBy: HE1PR05CA0147.eurprd05.prod.outlook.com (2603:10a6:7:28::34) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <871r5bf1o8.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by HE1PR05CA0147.eurprd05.prod.outlook.com (2603:10a6:7:28::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.14 via Frontend Transport; Sun, 26 Sep 2021 21:48:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b45d6935-b99d-432d-1011-08d98137712d X-MS-TrafficTypeDiagnostic: AM0PR09MB2466: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jCkw6/VpY61c7nMk2qCwaCZ7h+Ucs7y1s9vkhuZlf1ydWTNq9pxlH6E/KEbyUHYRYkBxCl5zCzLOgR4EVimE5z0LkDmNOMo8B9/YOpI+/A1eVuPTZ6vQytg1NvKVcrYIYn9N68Udm2UgwWn9al0ytkrOVo3LqemQ2Rz+tpjDBxBDhxWfeZ0BrEb8VBSSN2xOBwzyuGdDfpAX9M4KPfqW/zB/QK1xWt9txeeq1dyxbdyN1ksdxFhuZ558FefQOG6rTL8gZZXrAbJYc83lcEAKsoJlIB65QrLJkN6iHW5sh/G1jSO8WjPwM9ymCdYqMFe+VU2Kzjf4bS3wmJTz8+C/tLeP/gDOopYpUeRHZPLH0VOCeM9RdHNQavvI4VHojcUNfnKD9Dg9rLIX4pQ/Wrm3vk+P4VaYY9XNRqEqKSa5iL5S7fgMBHu/5AD0OuD74LaB X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JvsfG7hyRI+kwZw4SIwdglVEtKf4TGa6/GRsmXIsoCivFSLcDsbu1HLxnd6BmJutfZe6dq3hoYgd4+B1zPb2gxlegI9VcHPLZmhuRSAsvDtmWJ+Bm5njVjXud05/fg7YotMBXrngxy1+baZDs8tPtg== X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-72e6e.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: b45d6935-b99d-432d-1011-08d98137712d X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2021 21:48:57.5113 (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: AM0PR09MB2466 Received-SPF: pass client-ip=40.92.73.75; envelope-from=arthur.miller@live.com; helo=EUR04-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_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 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:275542 Archived-At: martin rudalics writes: >> I agree, but I don't like to see hardcoded *Help* string all over the place. I >> don't think it will change in near future, if ever, but since I have used this >> in several places, and plan to suggest some other commands for help buffer, I >> think we can abstract it even further into something like this: > > The help buffer is "*Help*" - look at the code of `help-buffer'. Yes, I know, I have seen how (help-buffer) works :). > The > problem with using `help-buffer' is that it creates *Help* if it didn't > exist before. Do you really want your function to do that? Yes, the rationale was that for people who use built-in help, the buffer will be created anyway. The new object will not be a waste, it will be used next time buffer is created. I didn't thought that somone would see it as a problem. I was also affraid that something somewhere, would throw me into degubber. didn't want to accidentally end up in debugger which woudl be a nuissance in this context. That felt like a punishment for a user who pressed a button by accident :-). But I have tested a bit with 'get-buffer' and it just returns silently nil, and sent you a suggestion for better astraction anyway, the functions'help-window' and macro 'with-help-buffer'. I haven't had time to code anything today though, regarding the patch I'll see if I can sit a moment before I go to bed now.