From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 QCIyAn1H8GYRVQAA62LTzQ:P1 (envelope-from ) for ; Sun, 22 Sep 2024 16:36:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QCIyAn1H8GYRVQAA62LTzQ (envelope-from ) for ; Sun, 22 Sep 2024 18:36:13 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JYDmgQY6; 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=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727022972; 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=hYRS9UO5pLaSmy2VEoL8zpQUk2pUCuDTC5ybjKSYkmQ=; b=NPF9vYUJKRBBrSuwldXHg+34rYX1nDglCFf2UGw6/xH4Iwx69tNlZBjRh3Tqkw1rreP7cg u8lsSsgA/cP3CYayaWYSnHL+LKQE3tkBeVHfLgbTwdx9LTyCy9XX+dJpCtmoIvzYOjUUPz qSaPaRsrh2ItU6zKlQ2yJhi+14zq8BrjkrvkFjFxhwt4lre5w2Tl0N5s5GvSZgXR7Kmlz+ iwvaSZztXdlri9XNdp3uKRZ4fNOzkw+LDaxxsH8vMBZHr8KUkgDADyNb2rwQdVKx+srmmc XjDk8xzyhLv5vlu1kKvK37kmImJ7aHdOM8DX7k6064XDRo6Hq7HVk6vnLsmI+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727022972; a=rsa-sha256; cv=none; b=i3VSkTS6/BdRRL8ky87rhZ9WW/Lvjmnu7SzPUj6pSveAy67Fjm1X1k3LpRhCpooG60jUoy Od5H7mcc9udGLyGDb2NNesgKe8rqwrRNEGOXbyDuWpCkt9iTJ+fhJEIcBuYdVIAH1rDUKK H9C3LpeF9eQ3MPfoXvqlW+x7CTvVAmL2I6DBMNhw+2yh01VzWVaSQ/HmDNiil11YTTK7Wc Hgv6Mr72EHxCRHe9HTA9buu+cqimgfqHy8oOWlWCrgwer4ptPAf4VCeFesTla02Q+vPiac x5OoAYMh3oIhUyoIRiQIc1/k03Xdetpy4msWP586Sfz1vjgOyAc8K7CEog9z+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JYDmgQY6; 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=none) header.from=posteo.net 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 E350C8251C for ; Sun, 22 Sep 2024 18:36:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssPYs-0005Kp-Ec; Sun, 22 Sep 2024 12:35:50 -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 1ssPYq-0005Hv-AP for emacs-orgmode@gnu.org; Sun, 22 Sep 2024 12:35:48 -0400 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 1ssPYo-0002hE-PC for emacs-orgmode@gnu.org; Sun, 22 Sep 2024 12:35:48 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 793E3240101 for ; Sun, 22 Sep 2024 18:35:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1727022945; bh=hYRS9UO5pLaSmy2VEoL8zpQUk2pUCuDTC5ybjKSYkmQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=JYDmgQY6p0rziN/V7RliKnl3A7FL6Rop4lG6a8rTTNhEH5qA70k0dBYb9/KPZ11Ce M19QqtFBfJcEQJq8H2dj2/1BtOPEsYzKWJs8if0QptV6rbLemJIeFcx29mqqFm6yUt vYQm7kK2RF5pjSlUQ12u8DdXpaxC9rpwvshL9GyVxVg+pZDdD/JGTmwVQ4I6PUAVzm q0Iue+WpncEi+LtgFxqTsZCinQdl7q3VY0yor9MJY4TcbCRZLCfcpHTPKW4sOkYZ4T bSW8yqtooO4pWuWED9o+CrCRciKsocDOsaP0mPxeLlZduQa86TzQO3Ye/79v6CMMPp d3nG92TzpYjvw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XBWvj0LP4z6tvs; Sun, 22 Sep 2024 18:35:44 +0200 (CEST) From: Ihor Radchenko To: Antonio Romano Cc: emacs-orgmode@gnu.org Subject: Re: Should "org-element-parse-buffer" check whether the buffer's major mode is org mode? In-Reply-To: References: <1b2b8c2791e628f6a41ef533e49a5ac9e3dee8a4.camel@pm.me> <87r09zkxwq.fsf@localhost> Date: Sun, 22 Sep 2024 16:37:21 +0000 Message-ID: <87tte7prum.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_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: -8.76 X-Migadu-Queue-Id: E350C8251C X-Spam-Score: -8.76 X-TUID: jl5o1DHHsL8r Antonio Romano writes: > The situation is a bit more complex than I imagined and am not > experienced enough to have a strong opinion on the matter. If things > are to stay as they are right now, I guess emphasizing even more in the > docstring that this function may have undefined behavior in different > modes can only do good.=C2=A0 Would you be interested to submit a patch to that effect? See https://orgmode.org/worg/org-contribute.html#first-patch --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at