From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id MIcrIjdRmGVhGwEAkFu2QA (envelope-from ) for ; Fri, 05 Jan 2024 19:57:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id qLGkGjdRmGWiGwAAe85BDQ (envelope-from ) for ; Fri, 05 Jan 2024 19:57:59 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=eaGJbRuZ; 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=1704481079; 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=P+VBjuOnHVgDuYMCvrgIrrGn377gxj1R56XYMjtjcD4=; b=dgZULeZYxAR2hdxtEJIFj0tYb/dXLCyjZR3q5vP1vJxrh1Oq9htWzslVkf5Oujf6mNB0ne BLqKuAjR36Bj4d6VbZ27mWjGiGwi09Uv9+0NtUZxQu2pCWRFFQmZtZA7xMkKA4dakTclmQ N6fF+PjRaoPwY/El+d+1Gh4Mcm7PHxUJR1+DreVPPVhLh71VnsqI5G4fU5689g8jJaEUkd 1Db+8dByIIzoiFAAzcCLADXM2s04l2m7OaJY0CBCcTEUo9brqxDRUwphXouz0FEqo3LUAV jySR0YfeiCzBc+W+1OX7WCP+xAka1JBPG5FfTCb3ryNIZyavRn48+OWnf4H3fw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704481079; a=rsa-sha256; cv=none; b=uz8qT8rN46riyzhVmv2IVUx1qfcXQd6QOPEJy9NdtWk83YcmLhval+7t+AaBIi4XbRVpI/ wGXm1JZvp5VbyHmTreL7j0ssTDkqHMW/fSLQYVJJLuM7JgLCPnKNZTUIdkIuMbajc559Jh jHYJTI2QybPyQ3frYm3/FMtNhGmAEFUBDixa6CJa/EJM3axYOIOxB4viGW+t1GoLto1nzK 7Vc0DxPB033VX08WnUn/Wy5aWLHmLbDgMY9Mt4fmunEijgoEfdX1DgDndIxeZrZf7RPUx0 dvVOZHPwqn/l9QOel9BNOKUi0BGulOC7YukmnTy3S40KroNktD191AnksXXoYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=eaGJbRuZ; 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 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 1FFCA3F070 for ; Fri, 5 Jan 2024 19:57:59 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rLpNP-00078O-Rl; Fri, 05 Jan 2024 13:57:03 -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 1rLpNM-00078B-SC for emacs-orgmode@gnu.org; Fri, 05 Jan 2024 13:57:00 -0500 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rLpNK-0003Hr-TX for emacs-orgmode@gnu.org; Fri, 05 Jan 2024 13:57:00 -0500 Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-28c0565df34so1107703a91.0 for ; Fri, 05 Jan 2024 10:56:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704481017; x=1705085817; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=P+VBjuOnHVgDuYMCvrgIrrGn377gxj1R56XYMjtjcD4=; b=eaGJbRuZ8vt3jZZHth6SC2kGyFX0p3l3M6IBzu7jGyRXZB6pCZOYOcPcUgRfsm3zDU JYHberg1V+o24eoY3yQBhyLFm7B4FXXYFBKPSqUa9hcZAXcXVZshAMcOZW38+5hMBPfi rJ2PxqslAg6uArAMi8iPbtoBuL5+OTFeBEpp4Ebz3w/BZjOANLwjBF6v8sewOqXdLmAV oBKjI407QOfrT8Hc0KaXOoTFYPiQXApjGrnEZ+j7KtbGkLwhvaTPaVnnF7W38gSEqgd5 HUW/5GPs17pwPeMwhlIWfTm410P6VUlhIOszo/BWpbGSBJXKtmrDtd4M2eSPLx/vitdD oOgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704481017; x=1705085817; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=P+VBjuOnHVgDuYMCvrgIrrGn377gxj1R56XYMjtjcD4=; b=rh7ucoRHDBKpEGJDPb6C/68PbypK08bCL6hrrP+q+qWFTddcstCibq64ZBUQjhyrUG ggXaoi+y6Fbv83JUea8uXbxkoPi/12epmL+FTwgyvLu5KCRL1nMshk/Q2AmfTurzk/8W Qn/nEzDjfVFCuO3rJdDxSiiDISkXmp0T5J/dreyiDOaaosyI1xUZXj82OvYt6BNj47nV DfUo8ZFJWRDjbD+8XPUBmQYZfv9ZiBO8kRuQJED7s8KaJEUtTTRF0C1FD/YI0k5AiL/n vCdHNJC07+wu8PYreSWqBp3FyTx7CWyevNoDPtLR95tpLliDuPwCI8c+r0rAG/bo6XpK Ygsg== X-Gm-Message-State: AOJu0Yx9k/V458C+ySmVcQVSJ7WdKPhqFCp2Eo0Mww8MmWOrFxQPOlY4 ANKNSrVp8hGyBCvJKoySBCqGB1sDAmU= X-Google-Smtp-Source: AGHT+IGFvMZQzihxciC5Nx/uvgUu9f0fYjW9nf8+Nx6/9IfCmcvTnqjno3ce5FtDVOEIqcJMVRd+wg== X-Received: by 2002:a17:90a:9f4c:b0:28b:74bf:a370 with SMTP id q12-20020a17090a9f4c00b0028b74bfa370mr2267820pjv.0.1704481017207; Fri, 05 Jan 2024 10:56:57 -0800 (PST) Received: from localhost ([2001:569:5083:f900:633:c2ff:fe19:db42]) by smtp.gmail.com with ESMTPSA id a7-20020a170902900700b001d395d3df30sm1720185plp.130.2024.01.05.10.56.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 10:56:56 -0800 (PST) References: <87cyug4ye1.fsf@gmail.com> <87il486jyv.fsf@localhost> User-agent: mu4e 1.10.8; emacs 29.1 From: Marie-Helene Burle To: Ihor Radchenko 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/)] Date: Fri, 05 Jan 2024 10:48:42 -0800 In-reply-to: <87il486jyv.fsf@localhost> Message-ID: <87il47libr.fsf@westdri.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=mhburle@gmail.com; helo=mail-pj1-x1034.google.com 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, FREEMAIL_FROM=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.60 X-Spam-Score: -9.60 X-Migadu-Queue-Id: 1FFCA3F070 X-Migadu-Scanner: mx11.migadu.com X-TUID: rAFwRoAxOI9j Hi Ihor, Thank you for your reply and your explanations: very useful to learn how th= e system works =F0=9F=99=82 Prior to org 9.7, I used to use `org-meta-return` everywhere to nicely add = elements to a list. Whether in mu4e, markdown, or anywhere, typing: - item1 Would nicely give me: - item1 - Not a big deal you will say. But I liked the behaviour. I know that org functions (with the exception of `org-open-at-point-global`= and maybe a few others intended to work everywhere) are only supposed to w= ork in org buffers. But many functions actually used to work outside of org= , even if that was never intended. I took advantage of that =F0=9F=98=84 So, indeed, not a bug and probably nothing you want to worry about. I'll ju= st have to learn to live without those nice little org behaviours in non-or= g buffers. Note that the Reddit thread I linked in my prior email suggests that I am n= ot the only one who took advantage of this. I don't know what org function = that other user was using in non-org buffer, but it used to work and stoppe= d in 9.7. Deep thanks for all the work, Best, Marie -- Marie-Helene Burle Research Solutions Specialist Research Computing | Simon Fraser University Digital Research Alliance of Canada https://www.sfu.ca/~msb2/ Ihor Radchenko writes: > Marie-Helene Burle writes: > >> I suspect that this has already been reported as I saw it here: https://= www.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 vers= ion. >> >> Also mentioned in https://www.reddit.com/r/emacs/comments/18gkx0i/orgele= mentatpoint_cannot_be_used_in_nonorg_buffer/. > >> In my case, I get the error when using `org-meta-return` in non-org buff= ers. > >> I then get either of these error messages: >> >> Warning (org-element): =E2=80=98org-element-at-point=E2=80=99 cannot be = used 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)