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 ms8.migadu.com with LMTPS id 0A8aMzdbwmW+xwAAe85BDQ:P1 (envelope-from ) for ; Tue, 06 Feb 2024 17:15:52 +0100 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 0A8aMzdbwmW+xwAAe85BDQ (envelope-from ) for ; Tue, 06 Feb 2024 17:15:51 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=VVPPCOtO; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707236151; 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=IpliEbvMR6f3IV2/2ubn3ur/xGRVh3zblAthYN7Hzbo=; b=B/n53Oi7HhsSuFNpoYbKfaOuSJpXyDiDGORXQbWJ/cQP/SDihGjahNYejQ+L7G2gxFXFwx L91fRk4j6viQQMoN5QxiPGVSzc35A2WXVOREgLzAfj8B96TM0QjkjbbU99uyhmsHglJ52Z L6dTJ6Mg9MyZzey0rEQHC9iFUR+HzVOTssNp01Xe1i0MeW10XTGL+qwtGqj0Ojr4W8ItJ1 ony93cG+5G6kwlaOjPI7WeLVrCJLQ8eW0kpgLkNOVIeACCZmxBHB0Krtv4T3t+Zfsj01gP j48u3lNouA3MmdgvMZvNNzN5SMNdOu8X2VXT28+GVWUKstC6Kv+suCF7uHozPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=VVPPCOtO; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707236151; a=rsa-sha256; cv=none; b=caw98Tqa1sPWWhVZ7a/gtUKbanthNiRIxnN+DXOY+CRe/JJ/fm742OTD3DUx0KGFYR+EBl 4qdWWm4OmqwxcYr1+GzwqHDe6Z/09lJoHx6/g8iZ3ds7xNPZbC++/kP5OnnOXDpXRbVFKl g2HQKsIDGspsiSx4pFOy+t7BdlIUXcCGdj7IeRV2QG63KjJg6Gs+dh3AtcrMAZhfqhSt/T NwD0dk4IbEoLh5jfWLoaWSY7kEPh+zPvnLGk7p0SG4Ihg00HMAkjh23gDeVzR5u/HRB6xN CL48NZdYNr8o16xotvC5ZZ/AZNZ7osVMv6muQ4URMh4+/XsEZ6OuQJZr8vYb7A== 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 8FCA23B2F3 for ; Tue, 6 Feb 2024 17:15:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXO6C-0007Ln-2F; Tue, 06 Feb 2024 11:15:04 -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 1rXO6A-0007Lb-RF for emacs-orgmode@gnu.org; Tue, 06 Feb 2024 11:15:02 -0500 Received: from mail-ua1-x92f.google.com ([2607:f8b0:4864:20::92f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXO68-000772-Uc for emacs-orgmode@gnu.org; Tue, 06 Feb 2024 11:15:02 -0500 Received: by mail-ua1-x92f.google.com with SMTP id a1e0cc1a2514c-7d625a3ace6so437350241.0 for ; Tue, 06 Feb 2024 08:15:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707236099; x=1707840899; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IpliEbvMR6f3IV2/2ubn3ur/xGRVh3zblAthYN7Hzbo=; b=VVPPCOtOmxXOpqeQoac7GnuKg0sqPz+G4b7ROWtBq9qDqoMBog2nj6yDB0i5a8Ev/b 1qIccw/fdEno+ZcDzGgf4fvcjVW0lIWIWRtMO1zJ+VQ1LVH6wdEtQrZzBFmWNEjSZoUN KxQwKX0dsCR06PznkKAZolFQ9S5iPWcX4pDsU5NovPIO9fHkhFtTXrc2IveRJluSmftx kUQdvPrVvZolkJSwapwqyeDhVat8NXCPnVlmftMkh9k7T2R6OmecZX+1I5uWm/6O51ND 6+aNBSCQm8uhA33e/TGjDbjdhqkQtjdzQvISLiIAVFGoCLMhcZRcaTBZ0SzMzzoQH66S qWcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707236099; x=1707840899; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IpliEbvMR6f3IV2/2ubn3ur/xGRVh3zblAthYN7Hzbo=; b=JDuZa/HN2vAAI70SMdjB7XMOJSoxLZBlypR8U/4s6HlpHXclGffxc0AzI7vM/ek3Yf 25HDSQ6G+8w++ShSTUdf/JJk2IB3T/ya4dCY1aD78mgBJapiXV7z7YtqkCC/z0KSv6K0 YbnWtvOPRonc1xFYzJ0nXur5SCeCm+WLO08H472iAlkqWn6iBbksZkdbeZYPdKviCJz0 DpmHLExsZmvHsW+VgTZ0ylGDbuFPHDktv3gd04zlqxrqcV75stVY1c3XXUvyXsRr1g2j CN2HxEgmEEyc2NqJYX+PEy7cXUpW+YiloUEkYNeauA9lp68TxbWq6RMmf8jrvTiUcOMw GFRw== X-Gm-Message-State: AOJu0YwgcS3y1qXlaBFkPBlAOf4emih/y+qfbj0nMk0VkkIFqPSA3qxE 3MLrMZred4bmkELHdpA/d3FtH0p1OWhkEofeeYb5K2Cy8+NsD2xbYYqRMK+tVabDcCZOomULl6F a1LLDKna6UK/eUFyZ1srqhRwIJ9CTvT34FsA= X-Google-Smtp-Source: AGHT+IGhyjefr94OATk3EWRYPTQTb/x703olTf1xrTqvkxUgurSJa0GcFrtS//TdiZyZlhp7TFrK70/D3GmMwaSogvI= X-Received: by 2002:a05:6122:46a8:b0:4bd:7a0f:960 with SMTP id di40-20020a05612246a800b004bd7a0f0960mr2813026vkb.5.1707236099415; Tue, 06 Feb 2024 08:14:59 -0800 (PST) MIME-Version: 1.0 References: <284DFB95-CD7E-4199-A77F-C01ABE6A899B@gmail.com> <874jeuont7.fsf@localhost> In-Reply-To: <874jeuont7.fsf@localhost> From: Daniel Clemente Date: Tue, 6 Feb 2024 16:14:32 +0000 Message-ID: Subject: Re: [BUG] repeated warnings about org-element-at-point "cannot be used in non-Org buffer" [9.7 (9.7-??-57b94f3 @ /Users/cstevens/.emacs.d/.local/straight/build-29.2/org/)] To: emacs-orgmode@gnu.org Cc: Christopher Stevenson , Ihor Radchenko Content-Type: multipart/alternative; boundary="00000000000040e8df0610b8e1e6" Received-SPF: pass client-ip=2607:f8b0:4864:20::92f; envelope-from=n142857@gmail.com; helo=mail-ua1-x92f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: -9.98 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: -9.98 X-Migadu-Queue-Id: 8FCA23B2F3 X-TUID: JNwmzABSaXQu --00000000000040e8df0610b8e1e6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I also see the warnings. In my case it's because I'm using outline-minor mode in an elisp file. I'm not sure it's supported, but it worked years ago: I could fold and unfold sections with usual org-mode keys like C-tab. I miss that feature. I never managed to learn the real outline-mode keys/concepts (outline-show-branches, outline-hide-subtree etc.). To reproduce it, I used test.el with: ;; -*- mode: emacs-lisp; mode:outline-minor; hs-minor-mode: nil; outline-regexp:";;;;* [^ \n]" -*- ;; a ;;; a1 ;; b Then I went to ;; a and pressed C-tab, expecting to open/close that section (showing/hiding the a1). And I saw the warning, and an error: rx--translate-bounded-repetition: rx =E2=80=98**=E2=80=99 range error [3 ti= mes] Please excuse if my expectations or my test file are broken. I didn't use this feature in years. On Tue, 30 Jan 2024 at 16:17, Ihor Radchenko wrote: > Christopher Stevenson writes: > > > I get these warnings about org-element when I am in non-org files; the > > main ones that come to mind are JavaScript files and in magit when I am > > doing a commit. They don't seem to break anything but it does get > > annoying to have to constantly dismiss them. > > These warnings indicate that some of your packages or customization > causes `org-element-at-point' to be executed in non-Org buffer. > `org-element-at-point' does not have a defined behaviour in non-Org > buffers and may cause random errors. > > If you can narrow down the caller of `org-element-at-point', I suggest > you to report the observed behaviour as a bug (if that is a third-party > package). > > Otherwise, you may suppress the Org warning. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > > --00000000000040e8df0610b8e1e6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I also see the warnings. In my case it's because = I'm using outline-minor mode in an elisp file. I'm not sure it'= s supported, but it worked years ago: I could fold and unfold sections with= usual org-mode keys like C-tab. I miss that feature. I never managed to le= arn the real outline-mode keys/concepts (outline-show-branches, outline-hid= e-subtree etc.).

To reproduce it, I used test.el w= ith:


;; -*- mode: emacs-lisp; mode:= outline-minor; hs-minor-mode: nil; outline-regexp:";;;;* [^ \n]"= -*-

;; a
;;; a1
;; b


= Then I went to ;; a=C2=A0=C2=A0=C2=A0=C2=A0 and pressed C-tab, expecting to= open/close that section (showing/hiding the a1). And I saw the warning, an= d an error: rx--translate-bounded-repetition: rx =E2=80=98**=E2=80=99 range= error [3 times]

Please excuse if my expectations = or my test file are broken. I didn't use this feature in years.





On Tue, 30 Ja= n 2024 at 16:17, Ihor Radchenko <= yantar92@posteo.net> wrote:
Christopher Stevenson <chrislstevenson@gmail.com> writes:<= br>
> I get these warnings about org-element when I am in non-org files; the=
> main ones that come to mind are JavaScript files and in magit when I a= m
> doing a commit. They don't seem to break anything but it does get<= br> > annoying to have to constantly dismiss them.

These warnings indicate that some of your packages or customization
causes `org-element-at-point' to be executed in non-Org buffer.
`org-element-at-point' does not have a defined behaviour in non-Org
buffers and may cause random errors.

If you can narrow down the caller of `org-element-at-point', I suggest<= br> you to report the observed behaviour as a bug (if that is a third-party
package).

Otherwise, you may suppress the Org warning.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>

--00000000000040e8df0610b8e1e6--