From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id iCIQMW1ZImZbpgAAe85BDQ:P1 (envelope-from ) for ; Fri, 19 Apr 2024 13:45:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id iCIQMW1ZImZbpgAAe85BDQ (envelope-from ) for ; Fri, 19 Apr 2024 13:45:49 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b="Nih/eVrZ"; dmarc=pass (policy=none) header.from=outlook.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713527149; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lNE5SlofuF9BMUNP41w3JvN9d1HnjePIMfiIATou74s=; b=QE9j0RkcaoW9l12OmpDfYXt+wuyPYfVuzFABH4Hy1lihaX+jwUyA+OhcJSyPOMJ8/wCmxc ubOObRVQGCjK2CBbG7gSEYXcr9ZDXGzSaHlBpcjuSvdQAnQeK9d2YR2xDcd1o3y04re90Q CDFg1BAnnFA8kAQOfodNUH0uEOo7TKMyJ9l6Crx9DVB1OdOBxtxMU2tnmxiPptIlqM3ANu lCeyWiSW1f9IJujRjbZWC+nwUPfEGtsCOyN/pv7YtbdaPAfIEpzHJ9XskBtigwDuAfiwNM zYD19MlMx+XvwQIIIVydqXhT59/htZGmt6GQB7qwQRBh3sMZNCPm+vg/WAHaXQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b="Nih/eVrZ"; dmarc=pass (policy=none) header.from=outlook.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1713527149; a=rsa-sha256; cv=pass; b=Vx27xWJ1AiawDjZSJPRzjODAva1+qWU+X6TXv4mMFAJsRyLz+toTOwaP/wXie5MME0uyoh eeS8OgJfvGJTqnnrHAZMVYAAiwouZWfzCUXcgx8fOuvHNnTezOAjwdauKCL+xte94okjpT tXpCFXA7WXJY9stq+EZ6vw3Kl0JKiJ3afUkRBKtGa9tU6Smx8KPB3eQ0Gx81FIz2da3e0U H1uCLw0a/jedXKYfWZI8CFIdOuB/S7KFnnpK73RA1iJOK0BjqgTBGDp1mJzLek5iLRd2GG 5/5YaA9PEIaAs5QhJVC1zQc1chbdftQeHlDik/7d7GayuDZ8FKXI5TG+IdXVKQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 43D0739E53 for ; Fri, 19 Apr 2024 13:45:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxmfx-0004v9-1I; Fri, 19 Apr 2024 07:45:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxmfk-0004ot-SH for emacs-orgmode@gnu.org; Fri, 19 Apr 2024 07:44:53 -0400 Received: from mail-mw2nam10olkn20801.outbound.protection.outlook.com ([2a01:111:f403:2c12::801] helo=NAM10-MW2-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 1rxmfi-0000DS-Vy for emacs-orgmode@gnu.org; Fri, 19 Apr 2024 07:44:52 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B0bsyZxnItcbDtjpAhc8OzkJdsWs3MsgJ5WMYlz9tzLDowShwbhVtG2kGep+SjtpN6W6rh4c7bRLAfeyg/OYFF/GXPlpc1EaVH325McuHNkUcxzg4fazhhT3kPV/419wV9hzP9PIQvy/sU4rxFVvEiWmVJAql1IQSsBOwFSDdh5BSXT+nC3CVhCNSd0NRnVYZmwFRTWKndmGU3sJZXZ5oeDBJNws0ID8idJHCBX9rzyII2GpT5HuZRNhgTxwiiVCSQjRHhP2IoCPNe1SBlvEcFwhowOMlmoLSBSMFgInWIenkJyb6iCuXZhH20Cl3kXs/twoq2ny8dVdrE1ecDvOOw== 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=lNE5SlofuF9BMUNP41w3JvN9d1HnjePIMfiIATou74s=; b=O44F4rGQ022L2kwKn5wFUqIuh8w9NTKtVO8N+uMXKF63005eJzlXNrnA/OGKctaF7kZhhnLyBVVR3hEQEJ4mgACl8+gU5gltpz+jkoAuNqjT0u+0WZ7LNhdrdxUggsS8kWTsTyjdx88/8lNqmc5iEdsDTGsu6oSC1eRrcWn5vnOjmpHdlXgze8IUhNmqbgkDB9nQn51w7svSdSBYGSM/P/vdr/dCtRuIQ00ab3YE3QiTBsm2S2A4WUcnudtmBpLLQVNt9fFCnQPsD0zMbRyZcuH4MfNoF0iNsONtHyW0ksHBXT6u3uqnet08p3mG964aSwa8Y5iOIhCy+p9KxXgkzg== 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=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lNE5SlofuF9BMUNP41w3JvN9d1HnjePIMfiIATou74s=; b=Nih/eVrZXUizjho0KMJwMZkuRQlLgt97ydRCHsg2BH040VcL6+3+1T+Rgo0QDpwL7Tkjm+CGYBTZ5fMKEUT6W8jtXUpYGYGjHroOpMI3yn3FmAnELxhfVNwdL89rtYC7Rscz5NoLJRysVKMDA4AOYjv3CNttUyzXD4QPn2UjvGkdPnzvgBdrQdUlRPeq1B2FAvAgZw5+XcgEvujllis8sMGk5K3wY7hvjMqrV7TSENV+yQSFfOTUJmms4B49517K/zAWFN3nrpTtvkA3gUMGGtBECdqY1k9sS4HX4PFC516R+/aF4M/FuU7LzTr+Z8y7yLEh8lGc4WXvWcztxREGTg== Received: from CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:610:1c4::17) by MW5PR84MB1961.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:303:1c3::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.14; Fri, 19 Apr 2024 11:39:46 +0000 Received: from CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM ([fe80::178d:1518:8a49:2a45]) by CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM ([fe80::178d:1518:8a49:2a45%6]) with mapi id 15.20.7472.037; Fri, 19 Apr 2024 11:39:45 +0000 From: Morgan Smith To: emacs-orgmode@gnu.org Subject: Re: `org-element-cache-map' misses elements at end of buffer In-Reply-To: (Morgan Smith's message of "Thu, 18 Apr 2024 09:33:02 -0400") References: X-Hashcash: 1:20:240419:emacs-orgmode@gnu.org::nMIKPxJCWkM/P8xJ:ADn Date: Fri, 19 Apr 2024 07:39:15 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Content-Type: text/plain X-TMN: [i2iKck5W3AiFYk77eCVpQUNS2HFy8sJp] X-ClientProxiedBy: YT3PR01CA0028.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:86::34) To CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:610:1c4::17) X-Microsoft-Original-Message-ID: <87v84d1t0c.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PR84MB3424:EE_|MW5PR84MB1961:EE_ X-MS-Office365-Filtering-Correlation-Id: 31cfb0d4-bf98-4929-23f9-08dc60656904 X-Microsoft-Antispam: BCL:0;ARA:14566002|461199019|440099019|3412199016; X-Microsoft-Antispam-Message-Info: OqEX+mw4QmSm1fflSLixxnyDIC+VnbpjSELl5pstwiBi7Ya1jYh0iu0oP2UIextQnFSNZJ7xwmZT0ThHv/Eymzk2vkBPCOSZ6R9Gvvi6c3NgjAN7OZ2nS5mygL/gfr5Nl7Fuz9Z7kJLtNuiCwtq2CimEJBQctn4DNiL2Nj7KpSZpZY/t4txDPoWIRe0X3PWNTPMoPmy+dgahqYz9ml8Jnu1UJ9z5SA5HwRVDbbx1maQX00TtPay5+1FEYpgv+2D+hYFhQxeaeWGV4/HqqpfCR1ja3MKnVwl4VC918RPDSnbn9gGgYeSsunv0SajCAUwFN/Q+0XTl3VPWsLJF4/GnVsVs5spwLWNYW/AkY4wT2U7KpdmWRE7XHU81gcIEJ/7t7DaPjVvP9h4izeAOxksvj3/QjmvbDUkpuFsLDPNhHMtOgEOdnEhxuY5KjZJnRgoRB7wF45sUCOfF6M3ZtveZwaU+Cxid+j6vKnRYJ367yC7zGavIGlgt/R9q76I7pIUbfjv1XetwCW2DoR9rADuJWeUBomfxLg7+SR8LxqU8VlgF7uooIY6j9VAh47A31kKh X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?U0vNJaTXjMNpEY8XnyuDWLZYQr6agLa9Yc3TUgKzUh4N5ccTdDui+4gWK+S3?= =?us-ascii?Q?8FLqUPfSo7tZ9hITkgUPcdWJi/nWJ+srrI5I2Ol8Hj4DplI2YhBLaUnYUX2w?= =?us-ascii?Q?fpdYWmmWd7/p6Q/nJOOY4AWIBNbeC2SxnHjA5KsErWGImhV+WgaN9ZG8UBDI?= =?us-ascii?Q?fH/VgDg8/pc7bRtJ9iL8VbOt/tc6lY/d2ras8KdZ4lgu9aQ2zWwDmGXtk6Ze?= =?us-ascii?Q?pUZkTsC8KD94O/DDwo3WFLAN0ahlW9t+/LYm1Hbj3dm5r5FOebkyr7T3wcXV?= =?us-ascii?Q?EV/J7LlB/ZCxovh4l2q57CvEifzxvao4ulVl+jqHbNoghjzy+Wji4D0uWC46?= =?us-ascii?Q?cMwifZJGMwaWThviCq1q0s7wkkvW9UOgWa2H8U9A0ZGPQtN11NbqJHpWmD1t?= =?us-ascii?Q?IMioj6hRA6HTRU9XSnvVwMW+XRP9sJdjrfIx9O34q+pafR6VPmMdwuucHzX6?= =?us-ascii?Q?Dow0NyLXup8hSwuJvxbchvgoSHoEwvlAuYAk5fub7w3gJ4eI52sQpdbUzXu8?= =?us-ascii?Q?yhqHaHflqfnvE0dtbgyNaPuPH7+DScYZ98bR63HGz6PMkJSo0YOxRTAH6oF0?= =?us-ascii?Q?csYjmumEnSnEVZJ6j92XxBRajaM377PLfcoB1exvX4BLbPG5PtbJjkEG45dY?= =?us-ascii?Q?UYX4B+Ew42JZJUgZh2iz2COC+RufCy24dEj6VyNKNHgTSZe8bHNjoEX+NfKW?= =?us-ascii?Q?Soy5Wk0bi/aoN48DetaPK/cOGz4hMbg0MjZDqjR1AXiLwQC7X5FWGhJJIcvo?= =?us-ascii?Q?sVLaZuO9a2VJtkeKboHCZ8NZWUjmfWc/lyeAU/v3C4dRE64cwpAzqvw2h75G?= =?us-ascii?Q?A4Za/didwvBhAb5cU3JoVZvu8CZifyXHS79KMV5kcpNcm7z6hVIBEkML7PCX?= =?us-ascii?Q?6clVUSUoIXrg10U9wg6sRJQ6k61EdKM6WQyYyBLWh826SoD9zWno/EjiSdxT?= =?us-ascii?Q?Uo3rUYMQ5ikkZXIcyAAl4LSRuZuZfK5oNHpa8uWNHPokwuMNaxmAz3Iagyuy?= =?us-ascii?Q?WyDcldz+qVC4Hhd1fgbMnBQeQnHkeN0hTma5w4H91kER/vxStXq6afe4mRa+?= =?us-ascii?Q?+Jykyi1eIirJd4TcqtR8u3S6hq7yAU0K6y1vwjhdfaETbLQ2fP3jwLN2JX+i?= =?us-ascii?Q?QsiMc/oFKdhIBtkaMPkb7kVHOi6Fr1/Zr/X6Ob0JawXOd5ooDmQHXnPd1MXE?= =?us-ascii?Q?9rfJQBsoIknJjaGikNDBp+QsKGUoujbP6Q9JaN+f8ZtXaRBuYZStpdMSjIVW?= =?us-ascii?Q?rHTEld61z5/hobhupGdv?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 31cfb0d4-bf98-4929-23f9-08dc60656904 X-MS-Exchange-CrossTenant-AuthSource: CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2024 11:39:45.1414 (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: MW5PR84MB1961 Received-SPF: pass client-ip=2a01:111:f403:2c12::801; envelope-from=morgan.j.smith@outlook.com; helo=NAM10-MW2-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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.79 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -6.79 X-Migadu-Queue-Id: 43D0739E53 X-TUID: 2Op4cW7G5o8x So I found another bug in `org-element-cache-map'. Executing the following code just freezes up. I am struggling to work through the logic of `org-element-cache-map'. If no-one else magically solves my issues, I'll figure it out eventually. But I would appreciate some advice on how to debug this stuff (both my issue of missing elements and freezing). I guess my next current step is to read the manual on breakpoints. I'm getting a little tired of just shoving print statements everywhere. #+BEGIN_SRC elisp ;; I get that this use case looks weird but in a more complicated ;; situation I also experienced freezing so I'm hoping solving this case ;; will also solve my other situation. (require 'org-test) (org-test-with-temp-text "* headline\nCLOCK: => 23:43\n" (let ((headline (progn (goto-char (point-min)) (org-element-at-point)))) (org-element-cache-map #'car :granularity 'element :next-re org-element-clock-line-re :after-element headline))) #+END_SRC