From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 8GF/KXxKcWfJmwAAqHPOHw:P1 (envelope-from ) for ; Sun, 29 Dec 2024 13:11:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 8GF/KXxKcWfJmwAAqHPOHw (envelope-from ) for ; Sun, 29 Dec 2024 14:11:24 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=web.de header.s=s29768273 header.b=Gx5jgM7k; 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"; dmarc=pass (policy=quarantine) header.from=web.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735477884; 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=wcTH3TezGh0UiFPMR3Hwqvi5OhBrvws4pijpmxFFvJs=; b=cVaOCvgdX101WIAYzkDVPmUn7r7kw273hiy9m5deaqyvuaHLlLDg67C04pdgSfbyiDjDTy WlFnnsc+JoDjGjwbnpw+Jkex26JGo3sc3ZtmToOgMvwIGCOBOZbBmpN1UxpHtzJudWODiH WH0W4Naxe/hyKP3VUm2mk7/1gn5ngpYq210Bk5x/sNh9ZJwjuosXp1kzo2ZpypAxNYVmz3 Fqg4MXL2RE40xcBWCgirNRxkJyBDlzTNaJnHAmncgJi08ima223BIv7YH4MnF4hVzP2oCe R6A+Wc3hkpvH3fIKqyaW3T1XRnpg/d1RFr4eYGO76PqfW6+SBj9RoZ4+PgUF5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=web.de header.s=s29768273 header.b=Gx5jgM7k; 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"; dmarc=pass (policy=quarantine) header.from=web.de ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735477884; a=rsa-sha256; cv=none; b=YaO2FX7iJAmkz8NQ1YyJz3OzmBChxxRiVk0UhV5dKYXXydwxoDF5ELjk4bdx5iPrrSQb4C 0MqX92CWSCgtLFeKK5fRDX0xwxalC96twhqEs1X/KaLlrr7nv7E+fHCA5Jd4/hRhpVsenw f51BL4uIpQK+ruCKHhWTJEkf0iCO9NVFjmq2vNIR7bglYMxD3B6Rqj0UGrqbV77laLs+xY uqbP0kMi4vWX0qnTpdn+9O7sVgz0PoqTrI8BSauqkOkgE8iKn3yP1PIbTXtlde5TFAuxcD 7VOsLvvTXYNqNsazJxdNe/+nBkzCMfxa0QSgEHWZc/5hJ2Kl06og0IzHacilKA== 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 760CB32522 for ; Sun, 29 Dec 2024 14:11:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRt3r-0004sm-Qu; Sun, 29 Dec 2024 08:10:27 -0500 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 1tRt3p-0004sD-Ej for emacs-orgmode@gnu.org; Sun, 29 Dec 2024 08:10:25 -0500 Received: from mout.web.de ([212.227.15.4]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRt3n-0006Nm-Fv for emacs-orgmode@gnu.org; Sun, 29 Dec 2024 08:10:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1735477820; x=1736082620; i=arne_bab@web.de; bh=wcTH3TezGh0UiFPMR3Hwqvi5OhBrvws4pijpmxFFvJs=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=Gx5jgM7kTCyAa4B/SmDlH3470M6ImRKW3PYDX0r8V5hNb11Z+uJnCM9H3fqZjIr+ GeUlf4Ht3bZLxzqCbJoMKNFrBf2yYDYofkifo/z2FEYjhPcLsU5CycKE6yuca++U3 HWSqPtQMzVUHXardwXpzhbsD63c44slm2S9IdDlFEqJCE4TpwqQSn4n41idDnlfSm uQy42oewgDLpllOSQI+pQgD09ZWaQdt/I/w6r84zMHNul/iXi1RmN+bljWY7rWH3k s3ky8Ij5rlVEl+9BUhUsWgGaBbp7WF9vQgEKG5jWHV6GfUuq/KDjMoClcEfG/v9/A u1ERRGgFxKLT5K8VNQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from fluss ([84.165.21.171]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MDvDU-1tKE4u1tYK-00GNJg; Sun, 29 Dec 2024 14:10:20 +0100 From: "Dr. Arne Babenhauserheide" To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Org Element Api: :begin and :end are missing [9.7.13 (9.7.13-8566bc @ /home/arne/.emacs.d/elpa/org-9.7.13/)] In-Reply-To: <87y0zyg3tk.fsf@localhost> (Ihor Radchenko's message of "Sun, 29 Dec 2024 10:51:19 +0000") References: <877c7i3gyh.fsf@web.de> <87y0zyg3tk.fsf@localhost> Date: Sun, 29 Dec 2024 14:10:18 +0100 Message-ID: <8734i63a9x.fsf@web.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Provags-ID: V03:K1:Za/WPT3rV/o7lFDmIR6TdkcL/Ok0muLeHdA5fbp2Ie2aB873XnG 7PxcQcAEOB3vAqeX7X+e/hcMdPO/cA6wrgurgfBIlfd8mE0+DVfON0NhTaAGoWkhEAdfLCS 8kpzrPyPUaL2Nw5Pi86oLmurvZB+LhA4RFCX34prRv3DEOGQx+B6GS0dIvozX3AlaHdw3hR nw2v2n74KoaJBVdaP2C/w== UI-OutboundReport: notjunk:1;M01:P0:qozsmDskeTg=;AeDXP2bXa1VDdIx+XIivA4k7A2P iCu2GnQ7gF4dkylGX30YhtnNLW6BHOoa07GvfwUoYyu/7eG6TIJyzG/W6vJNM8S2CAdFAgv+g vYpTSucHluRVnjoYQWZgMRhJvf8RvJZE1s6sxO2lCg3mbyVWZ7quOse8hUOwuVqaAeyM3a4yJ yPEJiEOXTQ0YR/z3TgrWk7YFqgsVXXpzGrOA9rfAhZoALv7GQrDAF+gHZq6GC97cBzgI9zdYR pNmvbRADDV8QOMmw8FrEHY4Pp/uykHdx8Dp3LSfWpGXJl4pQQBrQIQ+PNLlvLn3vUcC2lN2aX VcEN9kRFU3rEuz/DX0JCnmR3UFg7SzbDMHMj3WEJcZmYb0PSM5yZw/9vY28Qq2EFhJXB+HQeD uP0v0bHf0WWRPy0ctWGaYmddc7ZVvEqCu8e6pUgst2KlnhkRVFkQ3B6SncjOnB10NuyL56RdX sTM23TC3ASHPofJWFMJTf0i0YL0d1BwZFVyf+sgoNEV+Ub+epfmMir+UnhCxWH9HPIyoguChs tTdABn9z9UVT7GB7MllyL8A8SRSMjZQFyH1r0mnijAZiBR8htYJUreNL00aB+mMi62eVWJXWx 25kRiAOth8Jos3ZWCGBgETX31xBDC9LVJCDHBHvT7XitO1jKiF54uVOXTfSRugfjBAq9Nsfux KabAVoOTpV14HISeoIRn434OVXm+jBR1WFAPIQA9IfJHTBPipuhY6ID3UI74el4RYbPetQvgN ch+zkwcTKrFQ6jZuqMg8bhwxJidmrOGKkstpOzDqRcaByNmmX2Lz5OGSBWMLU+sALVFRD2V8m 3QhMLaV0740zbTOmjf61bdB/rCYWFDzFSx16deJMrgS9B5CWyCoLylkqqvQEi+CkS+RssgFoK 9Q+K9SPpqFtTwZaoyuJXJicgpCztcv1r7lGW1ocHBPJz4fnGaysAsmNegrXy8+v5ahUlMqlC/ yaM22Gew3gMEFIc3nr3z0cX204KJqJCwxqKJJoA3vCMshNw4lxE6YFKPxB1UKJMD5Uekicpg/ vBJP10lghTYYjwLYokOAm3I+B7enWSdLi8OK5xLV7mR23+SzfHM0kPgQoMhwgXU5mttUNZXzr 2qVm7d8Ug= Received-SPF: pass client-ip=212.227.15.4; envelope-from=arne_bab@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=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-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.94 X-Spam-Score: -6.94 X-Migadu-Queue-Id: 760CB32522 X-TUID: iWRXiYyj1Koo --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ihor Radchenko writes: > "Dr. Arne Babenhauserheide" writes: > >> In the Org Element API article describes that all elements share :begin >> and :end: >> https://orgmode.org/worg/dev/org-element-api.html#fnr.1 > > Yes. > >> I don=E2=80=99t know where that changed, but I found that nowadays I hav= e to use >> `org-element-contents-begin' and `org-element-contents-begin' to get >> the beginning and end of an element. > > Why? What's wrong with `org-element-begin' and `org-element-end'? I didn=E2=80=99t know that I could also use these =E2=98=BA What=E2=80=99s wrong is only that I had to fix showing the first paragraph = of articles on my website with this change:=C2=B9 diff -r 67cc09b71bed -r a7c3f1ff95a6 index.org.in =2D-- a/index.org.in Fri Dec 27 01:31:27 2024 +0100 +++ b/index.org.in Sun Dec 29 11:50:14 2024 +0100 @@ -259,6 +259,6 @@ (when (re-search= -forward "^[ \t]*#\\+title:[ \t]*\\(.*\\)$" nil t) (match-string = 1)))) (org-elements (org-elemen= t-parse-buffer)) =2D (begin (plist-get (car = (cdr (assoc 'paragraph (org-element-contents (nth 2 org-elements))))) ':beg= in)) =2D (end (plist-get (car (c= dr (assoc 'paragraph (org-element-contents (nth 2 org-elements))))) ':end)) + (begin (org-element-conte= nts-begin (assoc 'paragraph (org-element-contents (nth 2 org-elements))))) + (end (org-element-content= s-end (assoc 'paragraph (org-element-contents (nth 2 org-elements))))) (first-paragraph (if (and= begin end) (buffer-substring begin end) ""))) But https://orgmode.org/worg/dev/org-element-api.html#fnr.1 claims that it should still be working. =C2=B9 https://hg.sr.ht/~arnebab/draketo/browse/index.org.in?rev=3Dtip#L222 Best wishes, Arne =2D-=20 Unpolitisch sein hei=C3=9Ft politisch sein, ohne es zu merken. draketo.de --=-=-= Content-Type: application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