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: Sun, 19 Jun 2022 08:22:06 +0200 Message-ID: References: <871qvn3pd0.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="38860"; 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 Sun Jun 19 08:22:44 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 1o2oKZ-0009vD-Ms for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 19 Jun 2022 08:22:44 +0200 Original-Received: from localhost ([::1]:46214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2oKY-0002E1-7X for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 19 Jun 2022 02:22:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2oK6-0002Dr-Vn for help-gnu-emacs@gnu.org; Sun, 19 Jun 2022 02:22:15 -0400 Original-Received: from mail-oln040092067015.outbound.protection.outlook.com ([40.92.67.15]:52718 helo=EUR02-AM5-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 1o2oK3-0000kZ-5Y for help-gnu-emacs@gnu.org; Sun, 19 Jun 2022 02:22:14 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SFki9wtCj6MEhFMCmz0FlcveFZCj8lOyq/7NcENQ/romQNImEMcT6GLqGFCBZ0NnIVVx31EDe0sseajUfHOBgvST5G8OZkVzYxWR2Z+tpjP9HvhRCLlRKZCayzn//hczmwr3NsUSVrW21AS29IMLjY8YlN+N1C5zZSXmL3J+JSSmiyNXWYStu2goOTJoyVVeqsKY8iCJPevOW1JWhjqvBuw+gnH4/Oy46Hd5Dn86NuVxfF+LiPhbb4OL9GCHlLvRajoXGGAWjuTnP4Yp5WSrJIwnbzQ+gDO6Fei3opfpt+8K+hdPh8PqdQQnQdtt597r1y9w28e7F4NcXYzezmE1vA== 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=8xUp448QeLITVRK99oTIYfq52/yikSjZQJL5lbRnypg=; b=MWGfRdiBFKn61o1UBPV3NHkO7ADN+nk3RQypx9VOAH2t6sQ5lfhi4nBw8sSrHJx4ybCTpFx9ZXjxSALEgCgXnNi4sKyKqamkMCuYAvaRSYF8nYm930D/EFqtlQL5fA4IMSrAYZvIamI8zA+xI0F2jT6DJWEty0n7/cah9rxhVfROaupLe+nWfgtYIZvRe3d2JqpK//dmO63Gzfv1DXnSk+Q03668jpG3c9YZgNc65jzmjQbpNywNogTdMEkpGj1QykcdGH8fCwkAnFVsBSOyO6gS5bOthTPauutgD8DGn1Lds6Q/I8geWO1h4rw1AEt1OvaC70jyzgCbtYoEwHm2dg== 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=8xUp448QeLITVRK99oTIYfq52/yikSjZQJL5lbRnypg=; b=K/OnwWQPy/j4GoUwqHorZ9qdmqrsXkKyx68zPV86zH+CGwgQhC1/uLyYIBKZNCKbfztnqKqzI6ZMeVV3ctf7Ilbp4ZPYnEeen6dIn9q5BrgnVjQaRy+QStKNnME8+RV0NTG5cw6rweDo2V4d5BhbcSEmsB4TgsATkz5KpVVjz3yRal+Z+yiQwKTjHJWoYoWe7AA6r8WUV7mO1jhIJ3kZ2sY30vQu/mAvWGfmPYv/UHiS16IB7DGO1wTiBjDEg1dolJRlbSBejK78OmeQ4uEbesmzsyRL2FgOQuVDlHuqZP82Co2jWaiQyUVAgVzye9c6YdB5VpIFT7Xd3bPni5s4hA== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by DB8PR09MB2876.eurprd09.prod.outlook.com (2603:10a6:10:a2::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.16; Sun, 19 Jun 2022 06:22:07 +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.020; Sun, 19 Jun 2022 06:22:07 +0000 In-Reply-To: <871qvn3pd0.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 18 Jun 2022 00:19:07 +0200") X-TMN: [oOd0kWXAPyB3fZTu4UdNVloI2Wqln0X3] X-ClientProxiedBy: BEXP281CA0007.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10::17) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <877d5dfa0h.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4ab1313c-6fca-4878-c29d-08da51bc08f3 X-MS-TrafficTypeDiagnostic: DB8PR09MB2876:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rNeINLLv/8aAbi2adbdkAeQ6CLUzh4LHHAViadM7HYpRoHz6iyqFL4z9f4ktFmqwuJzZvtsRQCFoPW7b32IPggTamWmfR9aADMhLxjbYTUtrr6P4wN3fnnMSD2d9jo894WXD68y0mxSNP648KAfkqmlqQ9kS8QgtyGGcuDVFiyFHCmAwzoYXfvH/5up5oS9U59bBG0ROW9EMY7CyxigR7CvgT2a+A6TEJrJA+N9KAGNcFEsy/uSSwyaRoqAZBTH4KuDcz2e6bcExsbccFaTa8/qwsXhxTVEitehvnQDS/8EFuqCER8vqKoZudtjewU6BZxqSiN8wkEprwzlbUbfe2hPadHirPUu3Dj7ox1tNNqWX3emnSjKDuOkKzOB3gJnMNBzjGqtk7X28NGa8mjVhLemhVHzRBu/U7KhztG8iiWh7wRD0UitxBLHM2TRHls2pCUIUPI58z7i31uBFqS1Nb3mGCfvjR46ywv3lf2knKNHWNReu7vmoT0qFySKmTZ1Rdng725FPg1wW+vH4M/GMtbU7QxuLV6fCTb+LIY7E8Z0voeNi3/5VsqsFfQEO0laHvMHTU2BIBWAh+C3mCFugrA== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?J9AYmFkGnySNPNrkcdVPDEHY1Lz9bb54I8oc+K0kOLnVYh1I5jFVQvOCt3sG?= =?us-ascii?Q?OeNwoPr1vDNTHy0+0iWwpRUuEQwIu2MtJADf7Of7NEqEeYtNT5UDEUjEtJhj?= =?us-ascii?Q?eYJc+gL6QR7N9ka6EljUvbz/s7BQd3kh2GmtkfD7zycUk2ucDt17uJBjIogu?= =?us-ascii?Q?DuDmMusZdLYBgshM6C7BHZEQ55qdDMXD5TfJ7Y3UK/pLBDby9MA7g4GZv4el?= =?us-ascii?Q?i5i5O7kjfnlk9RWbi4Vc4jDbvxzfsC7LgKK0CJwK14RyTpoXnwCk+7dCyRAw?= =?us-ascii?Q?dTaFukOTW1xqU5S2F7xeMQuVxkkHUxYuIJ7WyNkH6I4EROsXD9iAvmBuwGnF?= =?us-ascii?Q?t4x18TC+Rs3M8FqsAmiGcmuMvDnrEvtA9XOfXck04wt0mFy6r5Y0Uhqcai+0?= =?us-ascii?Q?V+OeA+JiZMtkuJv1WRab7op5im9/Vxi+HMoYmvwysTTs+lnw6Ju28AAppnUB?= =?us-ascii?Q?rJEjVQo9pGt7xUERJ2T/TpJC8sKWckiuqc9Ut9g7A4rcAYNQkxTz0jdnbmZw?= =?us-ascii?Q?4QFTD7XB+dEhI54Ipu5bYXbL+HG8gdpInN3CBKezGRfpEjXxG8O1/7pI/KYi?= =?us-ascii?Q?vKujnNNxyYJkh9k0tLDs76aim56QpoI+Sj8oFEn9JfuIrUSNLVh40IoS9rfh?= =?us-ascii?Q?rj X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 4ab1313c-6fca-4878-c29d-08da51bc08f3 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2022 06:22:07.6303 (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: DB8PR09MB2876 Received-SPF: pass client-ip=40.92.67.15; envelope-from=arthur.miller@live.com; helo=EUR02-AM5-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, 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:137925 Archived-At: Lars Ingebrigtsen writes: > Stefan Monnier via Users list for the GNU Emacs text editor > writes: > >> Personally, in similar circumstances I tend to do the following: >> >> e (setq my-foo ) RET >> >> and then I go to my trusty `ielm` buffer to look at `my-foo` in all >> its glory. > > 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. That sounds useful. Could you pop it up in a tooltip? 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: (defun pointer (x y) (save-excursion (goto-char (window-start)) (forward-line x) (when (> (- (line-end-position) (line-beginning-position)) y) (move-to-column y) (1- (point))))) (defun symbol-value-under-pointer () (interactive) (save-excursion (let ((pointer (mouse-position))) (goto-char (pointer (cddr pointer) (cadr pointer))) (let ((sym (intern-soft (current-word)))) (when sym (message "%S: %S" sym (symbol-value sym))))))) Could that be useful to have on a C-u C-u e?