From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id DcmOGFub5GWDIQEA62LTzQ:P1 (envelope-from ) for ; Sun, 03 Mar 2024 16:46:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id DcmOGFub5GWDIQEA62LTzQ (envelope-from ) for ; Sun, 03 Mar 2024 16:46:35 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=S0iC2ycf; 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=1709480795; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=aeIotmRY8X8lg43VRtglgVEeRcnEyD1ztFQZBQ2I6aU=; b=q4GhR8PV2DrHb3ZMBpt94edNGKVSVzoJAHlV4THYy3djjvj0xk3Jes8uw1N3JCNhWOimX/ hhdLBU06a3ZnqgvvMZOaCmvcxQj4XzupykZLUThdcblZ4z+OJZjZn+bghDVfSsrK86z4ur NT52E66uidUQgd5JXIsYEau9tqyLpRZzp3SC+axlzJWtduKCwVx4aWjG7uG4wjPDUfg+fE 6cshcepf7WjzIE58IIo3yMxS1Tevb0ogAI5//2Xw48CBtre4EBXIR2pc6DydMjBNC8n0mo KwUwrxbMXLWkpJkTTJRaajXSjepsZZ2gUPinwTTlKQdf6WUy6zyQXPaXVUNk0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=S0iC2ycf; 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=1709480795; a=rsa-sha256; cv=none; b=Eq3lcI6Z1A8xOk+zqSePikRf+G3yPBEB4udddPoUNRzMqN9ExUcne9yqdsylTQ5oSr1hum 1FYKVokaP7yFsmxnnj7pIImrTMtAHht2QT3yMYsFKa9FsYNqKCdExSX7J1eEwxj52QxKTt xDs0ebFCmSL7PabW89QYBdrtU+kFWVN/JweMv/+ELDQutbpoW6rQWQxxv7G4uOoaePJw7D u7aCAkKkRE7oCQxgzibCGlDobIEOanS1LGxOEqO0YDIv6z9gTGQHqvaLtSk8r0sl2AYNoq c97/+ObaX0kVldKozjjBm1WjLU2890Vxh1UgJnBKw9jvLwhH0QWu+OukBBQuHg== 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 E88CD5143E for ; Sun, 3 Mar 2024 16:46:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rgo29-00008f-R4; Sun, 03 Mar 2024 10:45:49 -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 1rgo1z-000052-Gp for emacs-orgmode@gnu.org; Sun, 03 Mar 2024 10:45:46 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rgo1x-0001XI-3B for emacs-orgmode@gnu.org; Sun, 03 Mar 2024 10:45:39 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 62750240101 for ; Sun, 3 Mar 2024 16:45:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1709480733; bh=/AGW8jI4Gas/SOCD2PKYFuG5U+XYWUsYUkItSmF7c7U=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Cc:Subject:Message-ID:From; b=S0iC2ycfj3IauIUynTB5KgdTwpCwJDjBro5VrGrosDNgHTA3jQgqNihB+/IcpC2Kr EDmrxKqdJ5GnWhuMYQLxVkF9bCyCeTgpFrmUP16QQE2qrkWAjaoYWy6KMZaS0boV+W tMCX1bS/61mXTlyRJNXXSUY5VUwRGuu225lvaB4QRiytRnBzzXEEHpnuu9+x70Dqeg f36LtP42zMRENwktXbSUz+o5C+La+k8gOecudgYMQ0oDRT35FmGybGmtjJAVRWKJgx kK8OMSZr8wm3/Zef1I9a1TOGgCTyVa+J/OyKbdz2hrY1lYQXz7M+5kKKUnA4JO1o4X woCWd4ml6PmOg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TnmPS6M8Jz6tm8; Sun, 3 Mar 2024 16:45:32 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Date: Sun, 03 Mar 2024 15:45:32 +0000 From: gerard.vermeulen@posteo.net To: Ihor Radchenko Cc: Emacs orgmode Subject: Re: [PATCH] org-babel-demarcate-block: split using element API In-Reply-To: <87plwbjweg.fsf@localhost> References: <7e41f9b6e9026a404e256f33371e974c@posteo.net> <87a5p9uute.fsf@localhost> <87wmscrty4.fsf@localhost> <2c82fa1399ddaa52ebe5bb21e241fb5f@posteo.net> <87o7dll7vn.fsf@localhost> <874je4hjmr.fsf@localhost> <87frxmtasr.fsf@localhost> <87h6hzi9cy.fsf@localhost> <067f694028817e59ee3d0c49dc80dd3b@posteo.net> <87y1b8loop.fsf@localhost> <529eafb5a5274fb4e15917ce3b97d785@posteo.net> <87wmqo3it5.fsf@localhost> <71a7a6b51654e020f72cfa6ac07ce36b@posteo.net> <8734tbo54w.fsf@localhost> <1b8d2e657adbda4ef753f8674f2ad0f9@posteo.net> <87plwbjweg.fsf@localhost> Message-ID: <5bf6832d2485f0aa6be2e5ea2eba37d2@posteo.net> Received-SPF: pass client-ip=185.67.36.66; envelope-from=gerard.vermeulen@posteo.net; helo=mout02.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_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=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: 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: -7.83 X-Spam-Score: -7.83 X-Migadu-Queue-Id: E88CD5143E X-Migadu-Scanner: mx13.migadu.com X-TUID: U6aZm551r/4w On 03.03.2024 14:08, Ihor Radchenko wrote: > gerard.vermeulen@posteo.net writes: >=20 >> I have reduced my version of `org-babel-demarcate-block' to a minimal >> function to locate the bug stemming from edit-prep signaling an >> user-error or not. In case edit-prep signals an user-error the call >> chain `org-indent-block', `org-indent-region', `org-element-at-point' >> triggers an infinite list of warnings (major mode is Python when run >> on the test block). >=20 > Have you tried the latest main? Yes (just tried again), the minimal function still triggers the=20 "infinite" list of warnings "Warning (org-element): =E2=80=98org-element-at-point=E2=80=99 cannot be us= ed in non-Org=20 buffer # (python-mode)" It is coming from the last org-indent-block call even though the message just before tells that the mode is derived from org-mode. Your changes of last thursday helped me to narrow the problem down to=20 this call. Regards -- Gerard