From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4JotNP31l2VrDAAAkFu2QA (envelope-from ) for ; Fri, 05 Jan 2024 13:28:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id YLGrLv31l2X7+AAA62LTzQ (envelope-from ) for ; Fri, 05 Jan 2024 13:28:45 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=HzEVTF+R; 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=1704457725; 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=Pq4oSF5CYMYv/RTDhbAM1eVg3cuxdPHVXxClQ6cEpOU=; b=UlW0DcMeHsexJipNkkoAyFyzPWEYVYtXavxS47YL7YUlTrObpU5+aA92PYZIMFg8EMQN2p bHhHjIGK+7MnUIScEVSkBIFJTVA9pmxDREycMuyotS9iF7NJ8DSO4eTKCNdskslHJwDYBl W0pAMgNacWuGzKerQCH/8aHoo2MXoC0rlRkjGsV6O4ghKY/4g3s9ZHEhNawvdlLZ13G7sM pAHmO9R/bvmyX0+BVrjPUEonp5joeWuZVdRqiO33jnD7a6qURPTl2jN7KQU5PwAjLoqZ3d dcWS0qE56pgEA73Hb07MBd9ZpW8ySH3icCITVKKkrL5XyzkdsaEAq0rvZCZo+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704457725; a=rsa-sha256; cv=none; b=qQ7XqnaU8llbA4puPgV6cZJFjIQIjIwW2vqGLZjB+3s2CGIpgd4TNCtQa3hRkA35O6X+3e /DiSmICPDhyr8RH2cssZPiyuBjG3pBnj4jtYRWqGIU29ou4UDvLUXU1SWjy339wZh0jIx5 uOzCaUwU+l/tZ58VpBMKJpU5jR5Q8ejt5mFZfnmjSB9K/WW11zisCAtGZQVJ6JHzP7bz+a iOSLhaO8eXj1gMX/6B3v+xGSEoS68jTlegZL6oOW0RPXpRFrHqEMYQ7DczcfrYaEjEc83o DublNqpyQa8MH37V3EPIY6a+MdZ+Y/L5L7u4j1qwiQJCcC3GLyX3KirC1fECrg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=HzEVTF+R; 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 6BA7C27F41 for ; Fri, 5 Jan 2024 13:28:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rLjIO-0001ei-UL; Fri, 05 Jan 2024 07:27:28 -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 1rLjIN-0001eM-0g for emacs-orgmode@gnu.org; Fri, 05 Jan 2024 07:27:27 -0500 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 1rLjIJ-00062C-Rt for emacs-orgmode@gnu.org; Fri, 05 Jan 2024 07:27:26 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1E17C240028 for ; Fri, 5 Jan 2024 13:27:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704457641; bh=Pq4oSF5CYMYv/RTDhbAM1eVg3cuxdPHVXxClQ6cEpOU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=HzEVTF+RD/4YXtg/kWkpOsk5y2S+0+QyMp3v04GCbLFXOdlkNIEXKGfD82OTF7/aq 9H3rCGwiy/Mj2Vl6+2zBzWe/RX6VY1A2tDanC70KCSL0HK+/7GxmEGcBiPGgYI6XOb xA6qUS3lZejm6CrIeI+8Qbs5bDgNcFg8lqZT/01yMeWLdr5AEC4QQkqZ3Y+no2LEo4 Ock3FNA++L8wHZryNk5t5o7UJqeIDh4Tvy4fDWOv0n2W5h5crd1MzfDPK5NFVNpvex XJfP+LFbefs/InOW5WpYXgD09DiaD21MYZswxOS9gpkxK191VCHNPST3cqhL7/R9Nx LmUEwETOu/8rw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T62lW4LVnz9rxW; Fri, 5 Jan 2024 13:27:19 +0100 (CET) From: Ihor Radchenko To: Marie-Helene Burle Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-element-at-point: Throw an error when not in org-mode [9.7-pre (release_9.6.15-1033-gd8586f @ /home/marie/.emacs.d/straight/build/org/)] In-Reply-To: <87cyug4ye1.fsf@gmail.com> References: <87cyug4ye1.fsf@gmail.com> Date: Fri, 05 Jan 2024 12:30:32 +0000 Message-ID: <87il486jyv.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.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Queue-Id: 6BA7C27F41 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -7.00 X-Spam-Score: -7.00 X-TUID: vj/mCULuH9NC Marie-Helene Burle writes: > I suspect that this has already been reported as I saw it here: https://w= ww.mail-archive.com/emacs-elpa-diffs@gnu.org/msg102743.html. This is just a reference to the commit that introduced the explicit error. Do note that the error got downgraded to a warning in a more recent development version of Org mode. But the warning still indicates inappropriate usage of Org functions that are designed to work in Org mode and expect Org mode buffer. > Just wanted to make sure it got to the right channel. Apologies for a > useless message if it already did. > > Noticed this problem with org 9.7. Used to be no problem with prior versi= on. > > Also mentioned in https://www.reddit.com/r/emacs/comments/18gkx0i/orgelem= entatpoint_cannot_be_used_in_nonorg_buffer/. > In my case, I get the error when using `org-meta-return` in non-org buffe= rs. > I then get either of these error messages: > > Warning (org-element): =E2=80=98org-element-at-point=E2=80=99 cannot be u= sed in non-Org buffer > Warning (org-element): org-element--cache: Org parser error in .= Resetting. `org-meta-return' cannot be used in non-Org buffers. Just as the error states. May you please explain why you are trying to use Org mode command outside Org mode? Not a bug, although we can still discuss your use case. Canceled. (as a bug) --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at