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 ICtULu1xImZ4MAEAe85BDQ:P1 (envelope-from ) for ; Fri, 19 Apr 2024 15:30:22 +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 ICtULu1xImZ4MAEAe85BDQ (envelope-from ) for ; Fri, 19 Apr 2024 15:30:21 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=XF636oLw; dmarc=pass (policy=none) header.from=posteo.net; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713533421; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=CcP0orJpegcjOEGHmzesUKoVZsY0NBQ89yWKLqEv4y0=; b=VlWnxe81vY3MyBjEWbwiYHdPeFaxOUYvOU5cuHl1kATDRZwU5hb01UfrEbvIH8ygeuNeti IpEKzdzLn1oEoqtB57ptrlKYWGPMbZXm/iESb9uPowF2JKw4UaPrBc8xlrzrcLtk96kGVJ c3Gn3gjNrTJ7CGP+e+cNFDXR+nSwHri2xO5wlYBR7YR6gmF2kCVlJ8UHR2C96y1M81jLIW TCSu5N5gTISnMEsjVCSFZ33h9L2/tUoxb/LcJTe6hXXsV7D0M7eeZ++NDk6OD35Tt5BTf6 IZ7Au0fdPBVTvaFePdeyySa+vGV+gAt9glupMY/6Jnbds+311Ebp2gGEgDewcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=XF636oLw; dmarc=pass (policy=none) header.from=posteo.net; 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-Seal: i=1; s=key1; d=yhetil.org; t=1713533421; a=rsa-sha256; cv=none; b=jw0xRWUvpkENx7w9E5Lw4XoCrwT+BGEa4FJkY2g9fMI3Pzvc2UFfCjghyiNG7St3CfgwS6 vUsj55qyq5XqaR+xeoD41AKUgoQwMOUiXe6UGphS5CzEWLEyI76TJwFk2iiwIh1DqbMdgS gt6yUS48fZmBeug/p5tfiDAGVPRrNq8UWCUdEAbCG9RHen1ya+cfK6CK10KJshpCxx5vgJ e6lz4iOo5uu3+d+aETuc8PS74dBEoHna4S7pDCJyqjMIQqoL3JXRw92O1s8rwPYgkmHOaQ aljwfl9DonHPYM0r0RGpJ5RPWuaCSFnxmAxTpQBVUPQUCIdAAK5TDC0BQ3ZqZg== 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 7DF3265003 for ; Fri, 19 Apr 2024 15:30:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxoJB-0004Xu-51; Fri, 19 Apr 2024 09:29:41 -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 1rxoIu-0004N4-ND for emacs-orgmode@gnu.org; Fri, 19 Apr 2024 09:29:27 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxoIX-0004Jj-Dr for emacs-orgmode@gnu.org; Fri, 19 Apr 2024 09:29:20 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9592B240028 for ; Fri, 19 Apr 2024 15:28:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1713533338; bh=/3D+cljc1QdwZlLFzDN4C9RDfM+ZE3k7yOnwkRZt3AI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=XF636oLwXCTb7+lqkHoecI4trUOKXK8v0cXxh4BOYgXeHPi7ddKHDS1hThzZKrVOc 3nNLOA6uZjWjG6/dg2vzEVGlx97ujZAvaljSDYf5Deujpg2tEitmy5ZqNaq/Z1AyOG Ov9OsAjsPb4IsxPVobJ5Fsi0AgccHC1UxgMDxEWOu9701UgbCBvL1j/1IEtVk/T8Ov 7zldbIAI45CTuGFv5Ws5SJvd7TSoka0GiUTZWzAmejGulIKksjoOb6E72f9Ma/M52y v8SAP85C8F01thuKQYbM4I2oOu8pCoVIAZFo2zdxR4PJXEo+hSEuPGQjm6eBZ3P9fp yLHlEOoxRCePQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VLb893ynRz6txq; Fri, 19 Apr 2024 15:28:57 +0200 (CEST) From: Ihor Radchenko To: Morgan Smith Cc: emacs-orgmode@gnu.org Subject: Re: `org-element-cache-map' misses elements at end of buffer In-Reply-To: References: Date: Fri, 19 Apr 2024 13:29:44 +0000 Message-ID: <87v84dcwfr.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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: -9.54 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -9.54 X-Migadu-Queue-Id: 7DF3265003 X-TUID: qVvueqyALCKE Morgan Smith writes: > I may or may not have been trying to rewrite `org-clock-sum' for like > the 5th time. > > Anyways I was wanting to parse a file using `org-element-cache-map' that > looked roughly like this: > > ======== > * clock > :LOGBOOK: > CLOCK: [2024-03-24 Sun 15:18]--[2024-03-24 Sun 15:39] => 0:21 > :END: > ======= > > However I couldn't get the clock element this way. After much trail and > error I found that simply adding another heading on the end allowed me > to get the clock element! > > I've attached a test so you can reproduce the problem. In the test it > is a paragraph element that is not showing up. Thanks for reporting! Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=942a7320d -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at