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: Patch proposal: display symbol source code in help buffers Date: Tue, 21 Sep 2021 21:13:19 +0200 Message-ID: References: <83bl4n3hys.fsf@gnu.org> <87fstz3g6z.fsf@no.workgroup> <9ada9a31-4e44-7941-e9a2-ada86ba4e36e@gmx.at> <3438b87f-b24a-3bc3-871f-84818868d445@gmx.at> <87lf3q2ahs.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37704"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: martin rudalics , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 21 21:15:28 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 1mSlEl-0009aM-6a for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Sep 2021 21:15:28 +0200 Original-Received: from localhost ([::1]:36378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSlEj-0002gU-AM for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Sep 2021 15:15:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSlCr-00013F-LC for emacs-devel@gnu.org; Tue, 21 Sep 2021 15:13:31 -0400 Original-Received: from mail-vi1eur05olkn2012.outbound.protection.outlook.com ([40.92.90.12]:12610 helo=EUR05-VI1-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 1mSlCl-000360-QV for emacs-devel@gnu.org; Tue, 21 Sep 2021 15:13:29 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PQ+pNmTTuIM8s57ePIPaOP6Mm/EEw4ymyspyB0su+K8NvvwN0wOaLXjtmSO0vvi1xrdJuroDs/qYRGopanOfEpCTfEHnWIW9skNw8oY9bzaAS2YIqurwerHP6Slc5sKGylQLu4B1Roxi/2c6BVzWp725Fma52BjbK7UoZZXnQkswb6/Hdt1vPLy7AHvLYJx5+lPmo9sJplnw+6asYFZld1cA1OnyWUnlACVZK0K9MLAw9m32okRX7CZDfFLT4ypaBvabWGxgfM2kPziwMfkTppf7NtXWS3AB3AKjmkxDfahcs32t1LnMQvZ3vgjusNXh30/VWAuiZJBStIMcymV5Zg== 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=hQuOrTA4fricPtnkDz2gVAJ+5nlIgf2/loiwAS3p8C0=; b=Acg9s5U6GKQTeZI0Ff3Lboyh8FCBW/Ojf4ISDbqDdExPyzU6wnvog8EC/IJafCoAfa6gs9qB+FRpJ9guoNjB1/0RyfvQgaZOdS7FZDB1bbwZfs77S2c0bAU628rO929npkp5dBGHzCcAtHahzBHvP+c7/Dwu0fsVbzGOUfF0lF/iJ5FOt0B6hlOFTaTgRk3HvQgmCZqSoTN693JSIVL2py7X0TvZxrG1qb8x+7HFIrO6FaYmuTDe+nRq7fMmaWV5i04DYgl7KeowxdotIakzUktbwq4MMXiyAvns2iwb8Rp2dN/tedf/84uK5MIz5NfQeWmq3irGV/juP8sBaoMWVw== 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=hQuOrTA4fricPtnkDz2gVAJ+5nlIgf2/loiwAS3p8C0=; b=TZhPNbH3oVjUuRqszysZM0pEllbG2yneMLVFHaEIOd3mZ1wNAzTj+MNz12TDzHYIED0PR/jFmyecFyvNxosndFjnnfhQ5eBfcQ/57XJThv+KRdGeln5D0vs2b59YoxkhDMRdb3SFGXZsFM2om0OOs9s5QcMBxPS5CLrI08OOOcBNMMb9tpxhc2F8WNC85N35k5DchXpWgK3axtrTemJ93TBWdQXUgCwAXeSbU9I1uk0WU41FDL4hFvLmX/5QobErqg+r6FgV+yckdcI0jnf7XRAJCGabZRz6X9eo/6lWlTI9j+sfDtEQ0tUaj4mk5pjRgmOTUe6sVlOM2RdFccL56Q== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AM9PR09MB5010.eurprd09.prod.outlook.com (2603:10a6:20b:306::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.16; Tue, 21 Sep 2021 19:13:20 +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.013; Tue, 21 Sep 2021 19:13:20 +0000 In-Reply-To: <87lf3q2ahs.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 21 Sep 2021 20:30:55 +0300") X-TMN: [sSLGeg8OI/pGzY0KzW7VO2bqFJyTGtTh] X-ClientProxiedBy: OL1P279CA0068.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:15::19) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87bl4lrbcg.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by OL1P279CA0068.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:15::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Tue, 21 Sep 2021 19:13:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 368ff2b3-b24c-4042-4920-08d97d33e007 X-MS-TrafficTypeDiagnostic: AM9PR09MB5010: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5E3LxXK+6eWsP3GXUgxiFwkQHGHMVSWJ9+apGg7MP+o6eJbCKrgjPwUkA3SZZLnah/cgKU5W+UQzSXYHtAoBCH8BiMDHX8OOz8dWGlPafTx+pkXLuD4MmpXvGi15Wwo1e+7omzxKCWAVpgkUQ10A82Wsw1yW0zlfLEb6cTf5QJymuNI82oAFa2RA1+eGG5aXzmNcLXZNNwkSqi0AtbAT4KG8X0fW+62u9FlQIcFw+7xsmOUlJkayU1Di0DUCkGT9/USa0ffVXMaQcGYTvpyJ3002Q42ar13PX+wyu4CPdxskwPCo6ajeGrKe0QRTSQsj1dGKAwpYCQHjBeH5L/33bHuoQyEYpelnMvAdlhykbBY9YLydkSI/Ky7S3szAxBVC5geLb2/k1HGJ21nmUlYr1szz5GHIhYMdcFG3BvR/k+pGGk5CSuT9wNBIWxrlimpq X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /ZS2xv6E6x2Tl7zr/THrCOelCSDQzBP9zA5MH8se9L9g5/t59cP2iSBCQ6FeGmA2Y0wmPocqSCcbiaXUevFBe8vcv7x83U43GxTVVVbnovjoypTUKruex6q+NCnvtqulj0I+PzwAPLBhUpw+xQ/Ysg== X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-72e6e.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 368ff2b3-b24c-4042-4920-08d97d33e007 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2021 19:13:20.8339 (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: AM9PR09MB5010 Received-SPF: pass client-ip=40.92.90.12; envelope-from=arthur.miller@live.com; helo=EUR05-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=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=no 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:275262 Archived-At: Juri Linkov writes: >>>> If you fit the window showing *Help* to its buffer, there is no room >>>> left. >>> >>> It would be nice to make it fit to N lines in height, and C columns in width, >>> i.e. to make it fit to certain size. >> >> Who would specify that "certain size"? > > In bug#45688 I proposed on displaying the Help buffer to call a hook > like temp-buffer-window-setup-hook or temp-buffer-window-show-hook > with the default value shrink-window-if-larger-than-buffer or > fit-window-to-buffer. Then users can customize it and remove > resizing that will make it more useful for anyone who needs > to reuse the Help window to visit source code. That sounds like useful approach. Something like: (defcustom help-buffer-default-height 25 "The default height of a help-buffer window." :type 'fixnum :group 'help :version "28.1") <-- :-)