From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yMZ1GZfR2GbeXAAAe85BDQ:P1 (envelope-from ) for ; Wed, 04 Sep 2024 21:31:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id yMZ1GZfR2GbeXAAAe85BDQ (envelope-from ) for ; Wed, 04 Sep 2024 23:31:03 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pm.me header.s=protonmail3 header.b=VOMLGKZT; 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=pm.me ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725485462; 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=qKP3s00ssOmd1ijTkh9QjOzDClzK956zpQmLdWkKYsI=; b=hDd6xRNOY7yQq+8pTpPXD8jc2Ct2VkBczxJf6ii9bhfc7m2KMv0fL9RPM9yBrRApPLBMQ0 KHfU+OCfttRSbPSpORsP7I8FEx4mO359kv0Q6GWDP2gB9hReD6LMYxFXWLVS0imaaDpp3f WsmulWHKtLOJkbvDIMVWVYcU7YS6vYJpF+sWeJt4ELl34Q5+FE7C+5Nl1pGk7yqHUcS15o sTY6UJZZoSXBdI6QsuvRjOg1XFcdYce6r9o6jSZT9x5IWjA00ZS2O6k5SwAO3DZSkk4wXZ KZnpXsqriTEetJz41pEjWKmrHE5UWIlsm6CGp7yXh8iuDsZdrMW0ixYccoPU1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pm.me header.s=protonmail3 header.b=VOMLGKZT; 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=pm.me ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725485462; a=rsa-sha256; cv=none; b=YzUdcVn1TGMNFvgqVGBROPNIVVjg0BmLiPSR7oWu5RGMVdkKHC1xcN85eSCTu2//mUY9f3 BTL6vCLU4j7He80ImrNdrXDRb47ICIbSiewfa6h5iZX/jKBFYPkGjb6nY/MgLomwMNJ5hs hsAs4V7XjCfJkM9XzGQLm4eULQbp7WxHRO0E/gkGi85bZ/Rl1UjkNe5mbA1Luxt8iOzGxf 9qRUljHImbPqGVeOT9DkRKaTBVxR/ut8ROJJcimNT+uk+6sePyT1QrwXP2puLBFeFI6j1R DQMZT0LP2r/n0gND9auoW7Vwa10MdiBUqSV/vj5KZ3VHMWohvDuZeOhKpVU3Ew== 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 BEC13502BC for ; Wed, 4 Sep 2024 23:31:02 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slxZp-0004W5-8I; Wed, 04 Sep 2024 17:30:09 -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 1slxZn-0004V1-Nz for emacs-orgmode@gnu.org; Wed, 04 Sep 2024 17:30:07 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1slxZl-0008Ul-KN for emacs-orgmode@gnu.org; Wed, 04 Sep 2024 17:30:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1725485400; x=1725744600; bh=qKP3s00ssOmd1ijTkh9QjOzDClzK956zpQmLdWkKYsI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=VOMLGKZTZOpP+BSPIMdIP55/JfJiIaMjrG/j0ukT61rGxdiBgE4lOL/GckXX2piYi EvOUH9DrkoIno2FjKGAIol7Sp7GXS73iahMXLZbH+/4IJUmIHVJsgjb0axvobxE8Ru a6DY1fWC62hlQ9i4pGlIeQr2Zdm6DFO5xqlnRWTrsm7PitSSQAf3zBBgwAlPAklKz2 6/LaqyEQxrnYfyxTybGvS7Rfb1ZJuTVEa7BP+6HyJwMHyHVhavNob8pTmHjb3Gzpty FAY5VOeN97rYcLMA1+JNvFQyAQ8IlldbN6hzTn2y8QYiEWe9AqeuyEdd/6lXs+S3Oa Xb1shoEHTSGhg== Date: Wed, 04 Sep 2024 21:29:56 +0000 To: Ihor Radchenko From: Antonio Romano Cc: emacs-orgmode@gnu.org Subject: Re: Should "org-element-parse-buffer" check whether the buffer's major mode is org mode? Message-ID: In-Reply-To: <87r09zkxwq.fsf@localhost> References: <1b2b8c2791e628f6a41ef533e49a5ac9e3dee8a4.camel@pm.me> <87r09zkxwq.fsf@localhost> Feedback-ID: 77338314:user:proton X-Pm-Message-ID: 7eb7120a2ad657bdc41a79dfe54040946f2f53be MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.16; envelope-from=n58r@pm.me; helo=mail-4316.protonmail.ch 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: BEC13502BC X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.77 X-Spam-Score: -6.77 X-TUID: UTWynfJuF5HK Ouch, that part of the docstring totally slipped my eye.=C2=A0 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 Thank you for clarifying.