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: Mon, 20 Sep 2021 17:21:22 +0200 Message-ID: References: <83bl4n3hys.fsf@gnu.org> <87fstz3g6z.fsf@no.workgroup> <835yuv3f4c.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="38443"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Gregor Zattler , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 20 17:23:05 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 1mSL8J-0009k6-1P for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 17:23:03 +0200 Original-Received: from localhost ([::1]:35026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSL8F-00076n-OG for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 11:22:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSL6l-000516-M3 for emacs-devel@gnu.org; Mon, 20 Sep 2021 11:21:27 -0400 Original-Received: from mail-db8eur05olkn2025.outbound.protection.outlook.com ([40.92.89.25]:51712 helo=EUR05-DB8-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 1mSL6j-0001aR-OD; Mon, 20 Sep 2021 11:21:27 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IfP8UdNMfalxXj5p6+JMJHr6QPeCQ4YilDzmSfzEpfwDMA9nhY5gvsvopyBeJyDC1C23a6mhtTh03hMIcwBJ6/UZ+51XTzRz4/IkZJ0BJQEzMvv3sWC0rKdfAwW6YavSn91ppd+kCUlTd053dXeDlW1B9wiI1jlOp/XZ9MJNPSbB7I1qKO4vLoEEcEoQOFiBUdh7E33dcX9VSmYVnlveMIbFatWD6SknuP9VoY9tt3pun6dO1i5OSwhJCjLd5pgET3CRH19c7B0YgI5Hshqm9YsII1di/5SOYjuFvO3JxOZ42dcaWGzvRVf9X8acACGZK8U6gfDdDDhXr3a4zLJvAA== 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=zI4jjy5Te1jD6aa6QmLc6tPxy4Zfo/fAGScgzU5kg5I=; b=N1GM40mZzfjjs/IfEW/NWky59RXpTNEOE3ZCLoM1KteNrl2vyjE+ZR90D7JOjRBNGC2I/V0JmQlNlK0ZuFU0xZe1N8n5Wrsfp387b1ICFeOgQ3EE20LgKBn0fIzlMxBW28mlSwR5zkT4JKieNhy3gFQqs2MlDKhON59mV1ITqVizOFJijj3JHJHZlUxKhqZwEFCSN0IuDy3RJ8R/f/A4s5oZSdinuEIeUg79gMW8MS9J/2yvc5rj7mx4eGR+Lx2gPes/hS5+ibg+oB55NAvE7y7U2mNlt1n74Jv/TT8RIZNnNb9tY+Gnmt2ykk8hmaQdFjVdGhEoUW7At8rzWKRGdQ== 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=zI4jjy5Te1jD6aa6QmLc6tPxy4Zfo/fAGScgzU5kg5I=; b=p5FqXfuMe+3eIfbYkz5P4DzLYdcFvIkP0SAtVcgKbXQ7FI37cqE3ceFDSR/iHRmdU+SVMxvCC8GCQGgCrSygE76n/X2C5Y9opziWUcLIxIMMWTNGUoAKuJMbOjf7WkrJL4eXuMOCVWPZ/YoJkWasNEQbdfcsros8a1s7Sua1fgmMXY3ZefH1VXsTaBx5z0ez4d37FDgLiVgy66E30V2hiFgyj7sEGwZAP/ap3qlVAhbh+Di7IbLKHekVwm46ttFxXot0cC7qeM0z9rGU2bFuh/uarKtfNElTb1gwx/TGCvSae6QhUHCDlsg4ijorRmt8QNS012tVjNUfeKj+qZKeFA== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AM9PR09MB5043.eurprd09.prod.outlook.com (2603:10a6:20b:305::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.16; Mon, 20 Sep 2021 15:21:23 +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.4523.018; Mon, 20 Sep 2021 15:21:23 +0000 In-Reply-To: <835yuv3f4c.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 20 Sep 2021 10:01:07 +0300") X-TMN: [MHzPSHTF5xx183i44l9XjSUVJ6t+ouR9] X-ClientProxiedBy: AM6P191CA0006.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:8b::19) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87lf3rl1cd.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM6P191CA0006.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:8b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.16 via Frontend Transport; Mon, 20 Sep 2021 15:21:22 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bb3b6950-5f7a-4cbc-4a66-08d97c4a4df6 X-MS-TrafficTypeDiagnostic: AM9PR09MB5043: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ciHY1h4rIGMpS0Q2e1SUDNplH03KgPQ7mK56IGjhnAEhPbauiXmlrHzq1TD8VR094FXHJWMC1oLmJnK7h/0ODMcqCm0VhBLyYvu5E5G50neGfZDX+zyna0GIGHzyoqV5XWEfiviFF1MmYW/nPfXgl4j9xZMEN+xvqTwIrVI8o0LvzhotfxgYBNzL4yenbOScS4MIzW8x8RuFb/aMTVsRjuMpEQs4atZfSnoPLy4OZLidVX4rvCIwImEbvBdNq0kl8teKxMFZspjOcbbOolLv8Mu3Mq9+bssmxV8SlDYcIkiESYpdeW7PPt37VCDJP87KJ2D4QLq6ADULxqp11GcUrTCrbGpAjzeRBsAnqQUqH34O+TNHZy8+9kTzn+NryqV+mMGoy+/H+XIddHw2RSMDlNQF6NG6VCD/d1NvSjPeHw3zML9rZUEOolqGPxAKRJc8 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TwDH7S0O+J16EDTrC1VPJat5H/dQgjOlHmm3btNkkKKxAxEs5p4ea22nSm3oZfaQf3LK9ntFpmVYE6wMQDN1R3L2PgcPnRNozlz63gWbyLfDPZ99wzcDubVHnziQPFSvx6lwQibOZfD/ZNW1GmHtGQ== X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-72e6e.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: bb3b6950-5f7a-4cbc-4a66-08d97c4a4df6 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2021 15:21:23.0899 (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: AM9PR09MB5043 Received-SPF: pass client-ip=40.92.89.25; envelope-from=arthur.miller@live.com; helo=EUR05-DB8-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:275139 Archived-At: Eli Zaretskii writes: >> From: Gregor Zattler >> Date: Mon, 20 Sep 2021 08:37:56 +0200 >> >> Lastly hitting the `s' key opens another buffer in another >> window (at least for me) and (also at least for me), at >> surprising locations in my frame. I have a UHD monitor and, >> at least the way I configured it, emacs opens up to 4 >> windows, the help buffer and the source buffer not >> necessarily adjunct. All 4 windows can carry 92 lines, so >> there is plenty of room below the text in the help buffer to >> show more info. > > But that window has the wrong mode for reading the source. So it > might be a good "selling point", but once you are past "the drums", > using the display for seriously studying the source code is way less > convenient and efficient than having the source pop in its own window. > Right? Yes and no. If you really wish to study the implementation, than you will open the source file of course, maybe do some changes, eval your chanes and see the effect, run some in debugger, and use more advanced tools. But there we speak about serious study of a feture. Sometimes it is enough to just take a peek at something. Even while working in some source file, I might prefer to show help for a function from some other file and not to jump to that other file. It is like a little source code browser, where one can browse between code for symbols. Also, not everybody knows how built-in buffer works, as Gregor mentioned, and if one just wishes to take a quick look on the source, not switching the buffer from working buffer is a nice feature. I think I wrote that one as a point in the other answer to you.