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:27:05 +0200 Message-ID: References: <875yuvlrz3.fsf@gnus.org> <87r1djixiw.fsf@gnus.org> <878rzrzpfz.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27012"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , Stefan Kangas , emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 20 17:28:33 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 1mSLDd-0006lD-3k for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 17:28:33 +0200 Original-Received: from localhost ([::1]:49040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSLDa-00089k-Sx for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 11:28:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSLCK-00062y-PZ for emacs-devel@gnu.org; Mon, 20 Sep 2021 11:27:12 -0400 Original-Received: from mail-oln040092072044.outbound.protection.outlook.com ([40.92.72.44]:7814 helo=EUR03-VE1-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 1mSLCI-0006UG-JG for emacs-devel@gnu.org; Mon, 20 Sep 2021 11:27:12 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gMm33EGtzuZXHFuW9WmUTJKlANpS2IKS4cn9WHxJkR0OjU4FrDv49yqLhd0pLzPdlAozBHJSqN/Fsc1NiXs0xLiqZE7UeCL5vHys8EfScnr3XhSOAuAgm6KKrwVGqSUCKT5eiYOurqqUNWidZLohn9gBgydlyOh19jEndLEyOXxuf3QmID0UAZf6yBT/T7NI1/cT494XGVfOiBTfxaCiwIbvi9bEjCtrpcZ/slxo36fw6LcJcS9CHabVqgpumrTNo5tqU0I4KTMtw8xyuBt6xVLtCZUQu4Rz7NA3N9ELOL52HLdZHVqPrO7fPsNPbV5qRNoM89ID5VNAMHJ202BwDA== 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=NkLGdLMOOFZCADGS4FBZ/nEHlZFXfv9hL4UAiRU7sbs=; b=CJm2vn8wzrlufcWG3Kj0COW1cxQngM+Vf5bb1E9hiMpXmCmq8D5XG3/qpmQKGBjCAaEtv/rQ5OXY6auliyarWcSVPGZO9SDDJ0mh0dNYGhRglBIWMUHFBQCTjFWi3+5Doa6hJQtWRty8uUdFW1OXqhYrhbeI7cJCHaE9k6V/zG7TRXGlM12Dm3bkXPn4+qz9D3nKU48fodpkwslBxJW2tj7gdP29W7c/N8Xzr0H5eckKTOrDJKkRySrdnLi5p2GAtKhKBPih8o0koyxDBks+xi+mOcXAsBot5j33ecqfP5ET6pflyzgeguJJc2ilMdyRVeCncViA7eFVK41dEV1WoQ== 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=NkLGdLMOOFZCADGS4FBZ/nEHlZFXfv9hL4UAiRU7sbs=; b=eUR6Dbeh6zNVWvp7s8D4YWwMhY1BtwvKmU0A72KAIqt3x06e6tN7H24CoKZox+Tkv3aqHe2P1qA+ZJa9ioiiLUyy1rlLLElA4PUlZMhwUTTDORL2ComqZ5c/STzwgVC+59PiyhiXFpR9U80+VxYLDD6mgl1EVH5wbzfYzDhyAXy+5dNDaSsRrzvEOU4lNolCiGBqFit7wqsXKBMRZFjRyM+aO0OvAwazyatr4P/VIHqp/Y9GdHklgHuVbMgDoChZuLzgbe7dd838AhioBWfNzgKZ5JBhir98rUFqiwX0tTLJXUW/GSn2TRLDfB8TBWbWEzqaj+oFKtPOCK/GZnx+AQ== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AM9PR09MB4754.eurprd09.prod.outlook.com (2603:10a6:20b:287::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14; Mon, 20 Sep 2021 15:27:06 +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:27:06 +0000 In-Reply-To: <878rzrzpfz.fsf@localhost> (Ihor Radchenko's message of "Mon, 20 Sep 2021 15:17:04 +0800") X-TMN: [SgxWKftqFsN9BrES7CTgdZfyA+RnTMC/] X-ClientProxiedBy: AM6P193CA0049.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:8e::26) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87a6k7l12u.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM6P193CA0049.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:8e::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14 via Frontend Transport; Mon, 20 Sep 2021 15:27:06 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 41426631-4384-434c-e072-08d97c4b1ab0 X-MS-TrafficTypeDiagnostic: AM9PR09MB4754: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eFC2HFLbuLk9ajUd71WAxXpWlHFkuE5CrIBIddU/u24x3ZEe3edjxQTk/HUnShzYLBXNsM90nW2VQ7doqdC8qM/A+dUkg1dlHb7GhIBi1uJgYDtGZqZRw/w1wQJXYgxL9J5GFiKUsLb9Tor618byNwYo0sK9/WW9xFO5EOi6XPmirT0zdl82tWBVtKTjYk2QoQBPH7gBJ+OzTvgEOmKCR9lWiJ1d4pV6ud+BvieIRNROwJRmq1Z9U2SoEGVF1skaRVfVUXDlm6CVl1tI9TeJxKSS/BOfDYPtYT24u4J/GEmd40uFatGFM+mCkmzUb1l41F+ff4UUMvOQabtEhGIsp5UCrLZCsz3at3yEx3fqvCEl9BZKEfBOZQ49Y3anBBcnLAafoZzb9Kx3eNp6iWTBR7RysoB3H/dYkc4zQiM3EwkpItSjAANhhrydAy3pgcX9 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PmzdO3VrFV5I+ngF39WX23YFxt7oZwisou+r1JO8GhQfd009o9hZj54SgltPJNkrRfAJti8G4g+B4lSnskWpb90Ai8GZV6Hmaf6dZKbQXSWIzt5EzIINYIV4UUB+ScKHpFhthz9xQoQp9E/jmplNyg== X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-72e6e.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 41426631-4384-434c-e072-08d97c4b1ab0 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:27:06.6884 (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: AM9PR09MB4754 Received-SPF: pass client-ip=40.92.72.44; envelope-from=arthur.miller@live.com; helo=EUR03-VE1-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:275142 Archived-At: Ihor Radchenko writes: > Lars Ingebrigtsen writes: > >> I'm not against the feature per se, but I'm just puzzled that somebody >> would want this feature. :-) > > Consider scenario when you are editing some-file.el and narrowed the > buffer to a defun A. Then, you need to examine source code of another > function B also defined in some-file.el. > > Opening help buffer for B is easy - f with point at the B's > call. However, without source code being shown in the help buffer, if I > try to hit s, the narrowing is removed and the point is moved to a > function definition. Not convenient. > > Of course, one can create indirect buffer for some-file.el, widen, and > jump to B's definition. However, I personally find help buffer with > source code more comfortable. > > Best, > Ihor Oh, I saw just part of your mail answered by Stefan K (I think) and completely missunderstood :). Should read entire thread before I answer anything. I just wrote to Eli in other answer; sometimes when you work with a source file, it is convenient to just display a source of a function from other file, without switching to other file. Sometimes it is convenient to first read the docs, and than to maybe see the source, and if it is not enough, than to open the source file. It is all about the workflow, and on per-case basis. And yes, this one does not screw narrowing at all; at least I have not intended to.