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.help Subject: Re: How to get full value of variable during edebug function tracing? Date: Mon, 20 Jun 2022 07:35:44 +0200 Message-ID: References: <871qvn3pd0.fsf@gnus.org> <87k09cyj0b.fsf@gnus.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="27228"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Stefan Monnier via Users list for the GNU Emacs text editor , Stefan Monnier , Jean Louis To: Lars Ingebrigtsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 20 07:36:39 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1o3A5W-0006vA-Oa for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 20 Jun 2022 07:36:39 +0200 Original-Received: from localhost ([::1]:52038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3A5V-0004pF-32 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 20 Jun 2022 01:36:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3A4l-0004oo-6A for help-gnu-emacs@gnu.org; Mon, 20 Jun 2022 01:35:51 -0400 Original-Received: from mail-oln040092075024.outbound.protection.outlook.com ([40.92.75.24]:19935 helo=EUR04-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 1o3A4j-0001Ei-0x for help-gnu-emacs@gnu.org; Mon, 20 Jun 2022 01:35:50 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EWbfGf0/6C6ErqBDn4xjrzZDT5XgAHmK1R5iLmI0LZbxnzZ8XJW2n4OydOJy6Gqvs7v6fVwxex1aUMW+Or5aJGLWeqy50tm42Ya5DFm3fiBa6En9S9vfCsi0YDMECyBsGLy1D9oUGdwOHIqUv25sDtUQHebZAcCd5IdSBvPWpD/2ttRIFoR4XjM4YAifg+IYTvu9kIavzZYk4tZZwyO9vcrHpCmGvsr3/rWK6AqMeVWBX5EVd9DP+gSneNVu9xzOHjphbC0yuylECCfxS+afWSjAgV1/Jh1rUTOLSHHpcPF4jTIOhJRuKOXHCcTz5+zqJ6VXy23pQ0WYCLdRBURdyg== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0baW23XFzDdVmwgK5MmuRzvTwFpB1d7I9cZmEniyEJI=; b=jpUr+SHaTU2TuvBot6j2LBggX+WdkICE9HQT3f4kJ1+urSZ9Zx8Jjmt4xm8M4J2q7i6ksaMm29CKO/lbwVjntuZMyQsVEQC2TVFr1s8DyWaDPf8+DBNiDxV2uju0ICZaP3xchYIoE7NJvzS18PHlIsREUU+wpIcjiy2C7ztRABjqttxYi70vs3aodKs39CsYiqwSBca9XkkwNZXFoS2uzpd5j3Ovh3ffL/du3uCEINuiOdrFfCLdr7YDMrXm6TTf9+0OhJ9G8tSb+9Zw0yhGljNwjJ+hcTXrFEpnQkyciYACU0hl8q3vARwIxM8D2A+V9c+pa2SrJAsxraNaMfvUJw== 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=0baW23XFzDdVmwgK5MmuRzvTwFpB1d7I9cZmEniyEJI=; b=QvU0oR4Z/EdGad7a+z30hh19DHIi0GFLnp5ucJBGgRexE1wMVji5MPRJa7EvUA8VRH8FloQns2Co9U1GJzi5TmXw3CdzxdAEdSlV8UbwSDSWN1EJxUKtK0+o7lKMR4wR9Qxy03Ny21P/XYMMVfbtXtrbsBddS5e7JKWIodeoTr1IDpSwFy54m0iF3+fyeChLLzlnOiWNlwipzArO9oIIdQSXvyu9cwNJks9tDY8Qho2ioniF6YnFHB8z2XWGbaooaN45Dd3OE//ZqndHb9Fqd41LeopNBhzuWoq+tqqBVGkjA1pAeKYw4qUgzPlvFG42HiIhk6s7K1+hSi+hD+oGJA== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AS4PR09MB5707.eurprd09.prod.outlook.com (2603:10a6:20b:4cd::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.18; Mon, 20 Jun 2022 05:35:45 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::48c7:3657:142f:a842]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::48c7:3657:142f:a842%4]) with mapi id 15.20.5353.022; Mon, 20 Jun 2022 05:35:45 +0000 In-Reply-To: <87k09cyj0b.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 19 Jun 2022 13:45:08 +0200") X-TMN: [xkV5vc1Cw4tpWn+7et4XjBEl595H8Omv] X-ClientProxiedBy: BE0P281CA0003.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:a::13) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <877d5b7v7z.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 06571b11-b85e-4a94-80d4-08da527eb908 X-MS-TrafficTypeDiagnostic: AS4PR09MB5707:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TSDkztrYGxbhPGl/7+oHuy1KhTRWOy0CD9rM+gzdozs+uP1ho3HRN1e2846kd9FNIk+6YXRIlyqpwz5hcAavDBKnMmNUOGtCGal3nBvNMHuVlhGF9onK7gz7WKjSGZDoTrxZCnqq15xtPQbh45xB+shgunJWuf50CvXMBMXVFEAbevoL3kepSbo2eB7aOt+dRtpNBohU6DdVTkYLirYOLv8HDqIkHrHhGNwqY2BQ1fYiGKE8XKpgdqaVJ+NWhK824i69ZlnAQn2S4EDAbm/4/5ZfwYZQjn1zPulyJ+Gjj0iKccm7CaDVoMCDzNVfsQPKIExKgoRPilXuLiHLji2lfoa8zcJcf4VPTqKS22QBa/IHcwIHJKUp9hNOcWZhID6Do4VkgD/P+qKdu5EhIS4cGeABkD5g+NN/tdF/pLTu9UEYHJdrJYxqsGZAhUH5Zabv9rpxEHVGEQLFZpVeYQKIOawCeiUjzth+W8/bGGECXTfQ+407HCgpsYH+iZ2Q05smaoEdVb4Gf3Jb4cqhYViG/iQ0lG8Gut/XTrkX1ua5DgJqig0VzKptrExSc8SqJaATafDg2M1t0z3Iubjwfqm8BQ== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?UxVmonx9aZFKm40gSXkuqqexXH9kTtoi2Cm4SiIhBWOi/eTfj+XUzXaaLZgf?= =?us-ascii?Q?yizx3eg6K31aX8muXsttdWKKbCjhCHm/HOY8t+1MmKWb2+5DwbHfM2viHuDj?= =?us-ascii?Q?IWuKgxFwzcmax9DF/+EIb/4JC0PAFNpTo0/HLVbL55kIUBcw/fl84YWoPPFL?= =?us-ascii?Q?ZnMk2aneD3atY1WlYLibLLuHpGXL3qovHz1dBuqsYj8/QBPWT58rXiRWlHYz?= =?us-ascii?Q?ruV1Fdi9RuwBJlKezsYryXDfwlu/t0Y9ReeMkQefTxp9HVm6One6muZE9VUp?= =?us-ascii?Q?5YBzdl304DMy6ApnChtYZAVNMyQUaakb6C/kihxNwPxI8JC4kXM+RiXOgzhu?= =?us-ascii?Q?69I6PS1MtLDjYxNmO3rgH0HpWUaHXwbxy06qI9WubffKy5a/qu51+ubP94XY?= =?us-ascii?Q?cjmmpwBf12tuxnYzTzGSuuQI9sgST3fk2yDF58OhxCsNHJPhvsKyeYzO91Bm?= =?us-ascii?Q?zyJd5nTWvIm+pws9zPf6s+VyNW3aL7yBX+zSAO4D8fHZkdGASK54LrKHXE8S?= =?us-ascii?Q?VHrTWZsAwevdOPY3TsVasY82SRDt5iPIPu9KOQhJ4T7GKgoGsh9uBl5X26Sb?= =?us-ascii?Q?/3+Y4p7wj/IVQNhEiemwZ0N3OMIcC9zASJ359m4wCREd0iLNAmgVqIoR5a+C?= =?us-ascii?Q?b7 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 06571b11-b85e-4a94-80d4-08da527eb908 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2022 05:35:45.4263 (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: AS4PR09MB5707 Received-SPF: pass client-ip=40.92.75.24; envelope-from=arthur.miller@live.com; helo=EUR04-VI1-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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137932 Archived-At: Lars Ingebrigtsen writes: > Arthur Miller writes: > >> That sounds useful. Could you pop it up in a tooltip? > > The main point of this is to allow the user to interact with the value, > which a tooltip doesn't help with. One does not exclude the other? Anyway, I just replied on what you wrote: > That's what I do, too, but it's kinda cumbersome, isn't it? So I've now > made `C-u e' in edebug in Emacs 29 pop up a new buffer and pretty-print > the value. If you just pretty print it in a separate buffer, it is almost as good as in a tooltip, but can be a bit distracting depending on how Emacs chose to split buffer. Didn't have time to build and test your code, my build is like two weeks old or so. >> What about using mouse pointer as a "secondary cursor", if we would >> like to see some previous value, so we don't have to move cursor >> around: > > [...] > >> Could that be useful to have on a C-u C-u e? > > It sounds like a quite specialised use case. Examining the value of a variable while debugging? For me it is a normal thing. I press 'e' and then type the name of a variable, or I sometimes move curser at the end of var/expression and press C-x C-e. Would be nice if edebug instrumented code with help-echo to display values, or even the doc together with the value, similar as in help buffer but in a tooltip. That way we could just move the pointer over symbols and quickly see values/docs, instead of pressing e and typing.