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 12:24:02 +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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27130"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 21 12:43:09 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 1mSdEw-0006qe-LN for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Sep 2021 12:43:07 +0200 Original-Received: from localhost ([::1]:51794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSdEu-0005s9-R4 for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Sep 2021 06:43:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mScwe-0007OO-Fm for emacs-devel@gnu.org; Tue, 21 Sep 2021 06:24:12 -0400 Original-Received: from mail-db8eur05olkn2015.outbound.protection.outlook.com ([40.92.89.15]:62560 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 1mScwZ-00057n-Gi for emacs-devel@gnu.org; Tue, 21 Sep 2021 06:24:10 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EIHBAuxCniXSz+RwBCXwPR58exhDs7oV5MUnjoOS7cDlj22HoNi+TWn3Iog46Y/4iIPJMxo4i6I1hPOe3kQI64f2JUJV1VljQC7AvuEEi96WjJGXCeAvzWviQtlF2Q5ujnkajxOK/myr5Uh3ncoQavT7DS+/+LZGpacibZQy1jg2RZlGJeUwcVgcRpuXhmThnOrlyBq0E397kDzeYoZBHNgJlHq13W2pF9gw90v0CkdWbwrXjncJ1Q/7GaJzha7WHeLi5sBTb1FlsT3sOmgk5Vu13CcW/IBBc5lM3t+isNX7XgCNgJ+T7ZjxSh/crSAwCqF747To0Jg9LxusiBKqpA== 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=Tvz+2EGBlCCXpYx6HXrlawlZwByef0Ny2i8Uqq8IA8M=; b=SgQcIHFeUrNC8rpRnWu+ZtMNFT6gmxf9zzRiwqvDufgMsnZCwmnfJBr4JPukN2PwVT3ZloxYnLl29GW2Ru4RnSxSia4oaY7Sx2rdaw51x9D7ENmH7nlEB7mGT0zzdmyaUXfep/9RS6GNiWM43pcrBOucwmxB195Bc+1/nMFfu2k3sYGnTseX4P0o+l3MQswDZGATLwkn8s8HOA4VmEHtt0Lh5u7u3Jp15ntaW73RzAoLlPjF8TPMrQqOcUkD8J1kxEl7VLVO/Zm/L8ITkgr41dWdCLy2tgO2X772mKo6E4WyUJClR2EBA44j8rquIk7knuv3bFWWsoOFmbybamAfWw== 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=Tvz+2EGBlCCXpYx6HXrlawlZwByef0Ny2i8Uqq8IA8M=; b=ZRlhe1G1iwTKe5ggHqNDq/jiu1tyorMSujsjck+7vs8gZUzP1bAx25Ys/lQ1tVltc2OE6GzahwaOZgAtWLmMmiay1T1JcK9UNvYiUfj/O++pfIQHOyClqWZ0U/wS+9sIZ1ckrVmXObo/B2H6nN/PjGwK/q3TuEO+gnPFOaI6RUAAIpY6/aBSp7vdWk5uJazJxSNVRpHjcKnUrJIlq9lE/C8s52sSdf8hrzHKVrPxdbKWhcJcYYY0XWRdo54KvF1Y5wckaOuW0vO4gLA5+xcRVq0Uo+Bf12fIfZf5fdpOPD72aDeo9TjtnfxglNN4edxNpyj1SFeS74WwSHOpT8QmxQ== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AM9PR09MB4740.eurprd09.prod.outlook.com (2603:10a6:20b:286::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Tue, 21 Sep 2021 10:24:04 +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 10:24:04 +0000 In-Reply-To: <3438b87f-b24a-3bc3-871f-84818868d445@gmx.at> (martin rudalics's message of "Tue, 21 Sep 2021 10:34:34 +0200") X-TMN: [u/UrWrpMKim/koga4TqBDrWux6TvO2oX] X-ClientProxiedBy: HE1P189CA0014.EURP189.PROD.OUTLOOK.COM (2603:10a6:7:53::27) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87h7eerzul.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by HE1P189CA0014.EURP189.PROD.OUTLOOK.COM (2603:10a6:7:53::27) 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 10:24:04 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dd691cb2-4d7c-4318-22c4-08d97ce9efd5 X-MS-TrafficTypeDiagnostic: AM9PR09MB4740: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qjMffRXRtCIaGj9wtn+3waikKMVfOAS08iYIvQdgelu836dsBUIjAPAGOL6mBLGrHXAh7vcVYsUT5MJlFnx9s8pVQugLMel2LoJpyCjchYWLEA7omWpz8UiYcJ+ZgnynE8qaELfob1u6uC4FL6Rxlhztx6bGOPEPQ3deSuSM12a45Kn099QohFh1HncN/hDSCIq/9BttUpkFDk1aKiDOS2Gc54mwA7Gla1iCYmHSqST4FTIwr77ASExkFqAp/+dI9Q+d2z9rOdgSGh7n+kpzUmUTQuIB4UWHEHvlg61YQGcSxAJtOjfnyjQu/a/R19ADpgyLYqNK3SUoCAAY9e5ln+9KInKuNTg8njD95sK6tHZ4mXVzi9EEgGsIQHOcLNlpn9ebaGD8nTQGlnpXNhCcyFglUibOIEoTI/087nTIjFq2Qnf+5U+9LgVXytWyemaz X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Pd7nsXhaBGWl15TMng4OwKSMfDBOFaeJSpTlr+EpkxERImx69vPQbWyVh/HMJWO9Yr0JvcJR5cUbHQ7/V3G8e4eFA1RniJz31kPVSjXNiC3qenpsjvDOlsuhwuD+ALZbju5/OKVPxsGkhmXOdMCuiA== X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-72e6e.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: dd691cb2-4d7c-4318-22c4-08d97ce9efd5 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2021 10:24:04.8904 (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: AM9PR09MB4740 Received-SPF: pass client-ip=40.92.89.15; 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:275217 Archived-At: martin rudalics 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"? User, of course, who else? We put some default size and a defcuctom for user to change, as always? >>> . Where to pop up the location of the source and how to get rid of >>> it is a question we currently discuss in Bug#9054 and Bug#36767. >> >> There are so many discussions here so I wasn't following those. I really don't >> know what you have discussed there. I come to this from my own needs. > > Similar issues like how to navigate to the source of a function or > variable from the current point of the user's interest. I have tested yesterday, and it works well as it is in help buffer. It is like a mini browser. I am sure there are possibly 1001 different ways to do things; but somewhere we have to make a choice and do something. If the people wish something different from how it works, we can always build on it later. As I understand a lot of people use Helpful, and the buil-in help works even better considering cross linking. I can click in built-in help and get new functions and vars opened in the help buffer already; I can't do that in Helpful. Let's have a face lift for built in help for 28. I am sure we could debate for years and always someone will like it differently. Let's have something that works. >> This shouldn't be by any mean in collision what you are saying here. What you >> describe, as I understand it, is to display source on-demand, in help buffer, >> which would be very nice too. What I have done is to display by global >> switch. It would be still useful to have on-demand display when global switch is >> off, and it would be trivial to re-build the patch to include that. I can >> rebuild and send new one. I have found a bug and I need to rebuild-it anyway. I >> can also refactor it and add an interactive function that can be boudn to a key >> to display only sources in help buffer. And if global switch is on, and sources >> are requested, it can function as a "narrow" button, i.e. fit only symbol source >> to the help buffer. Would that be interesting? > > What we should establish first is what users want. Eli and Lars have > explained their workflow in the threads I cited including how and why > they want to go to the source in the first place, where to go from there > and how to return to the initial state. Few others have so far. I haven't read the other thread, but I have used help and why I think it is good, and some other have as well. Can you try what I send in yesterday, with soucre view toggle? I think it works quite nice (I did a misstake and went 1 row too far when deleting, but that's a trivial to fix).