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 eECvH8BemGWiuwAAkFu2QA (envelope-from ) for ; Fri, 05 Jan 2024 20:55:44 +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 yEnsGsBemGVzFQEAe85BDQ (envelope-from ) for ; Fri, 05 Jan 2024 20:55:44 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=djWZ7mAn; 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=1704484544; 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=o/qasuQW4wUEYGFiIebqBeXbj/QXPlcnGSfC/2/P8e0=; b=JjDc1q3MSRP1ynxvuY0ZenwpnHQBCA92+rR+9rs0QTkcF2TDbkTbW8nSNrX6dCUMIEbOSJ FsnQzarRaoQ40B8nKLqk7xeZNA9UYiwv8YIISonreMyBYk08wBfj3LCfYL57D8k0Md/xbQ 4FXKL2Jlf4WNz1nfoVFhW8zo0/dKH8Yt0f8e4CLOzrnor52Upzw87pA3WwTXsigh6L+nDz OV8SaU3jj6oOuLJGRkcQxVfbkCV90olaSIcPykm0FDsS4k09w5gR5QGQQzf2djlt4S6oE4 MeUTwmYPdZMVpzdZoLLw5szJwtFAk/MphcQGwzTzm63HLVdbd69VdMtqtMNwXw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704484544; a=rsa-sha256; cv=none; b=HikUpoTCqnYcEp0IKGMBWxX8fllT+pE1dfQ4TNiZ3W7MUGSUVoM3ze/sE9BtceFQ7lZqP8 eAmL7HkZmRjcoucHN/DB1NB9QH1R7UMoAIXaIPGsDTvBbEi+s9ZFl+vQVQCnRtmQzELO2W Md5C9pOIkPTXpsNFB9nsDezPHJILJjMXJZiSDYM9dqPeA/YjikXfXc4gFN0bEaWHiPayW4 ijpLulokWgeWy7iYB7SxkLBws7vigMV6zsNPVF6IVi7U9VurHLs1qrNFBcyQYaaaFbuLOk Ypp7ZlbtaUFjUW+TESCvs/vSK0XCgOGijV4puwEc+emTZCwNQLfW08eo7zzbCA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=djWZ7mAn; 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 49AEC4430A for ; Fri, 5 Jan 2024 20:55:44 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rLqGp-00015i-IN; Fri, 05 Jan 2024 14:54:19 -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 1rLqGo-00015P-3R for emacs-orgmode@gnu.org; Fri, 05 Jan 2024 14:54:18 -0500 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rLqGm-0007eP-Gc for emacs-orgmode@gnu.org; Fri, 05 Jan 2024 14:54:17 -0500 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-6da6b0eb2d4so1265243b3a.1 for ; Fri, 05 Jan 2024 11:54:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704484455; x=1705089255; darn=gnu.org; h=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=o/qasuQW4wUEYGFiIebqBeXbj/QXPlcnGSfC/2/P8e0=; b=djWZ7mAnvxVkoT/NIFetpMbyZJ3EujWergly9yuNXhLFXdB3c0Na/kwxM81qeqYuYl N6HM0JSJiRHukXvX9sHhw1hrMcFrvxo8l8AEc4PLRSxZB/IvEc/lzZMHAjpLRsEWBKUw iCKxkcLC2nRSSo+YixbZmQJ3wpAuvxlpw14CIE57E+vkktClQQcTRnnV7c6hIUmGGBLe ycEbBWX4iFxl0ltuBSgnUwfjArIHjCJ4CHzJwkR6i1Rh1p7vb1HJv+AWl7bgIygf7c1j dyEbEr5jJFdQaCLOAP+yPJsGcVbybgEEn0DBbpw+KpHjcz+CAmgFwudk328MrAxHciIM iREw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704484455; x=1705089255; h=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=o/qasuQW4wUEYGFiIebqBeXbj/QXPlcnGSfC/2/P8e0=; b=dq9EBhUpt2BkahUwKn0D2foVOG5JqNOUko4qml8KrWJ1eCc85CwknRzNaK6MUY5tTI vJV5JXUNxGN25PgQ4/33ajeHWelO/f+HtUDYFdtwPUD7w2OgFAnRpjrITbC1dT4eIfss b7/yQhNLls2MOQfIz6weaiw70+SrlXqwREvA/8LW7qgdWHpie+DjZrwI3VUHcSdQlOaH lLB1ZbqvWoDxmMqPq3ciKeWvN8ytbWcUCWtDvptSN6ZVGM/X07Fdqrujm0jobqJq/LQl 1u8pn3AOBGlNotOL6Tjtv1fHVP3IUxzSJIzYbp74MSCW6A/csNq0e4R17rEA1aOWeDPO VU6w== X-Gm-Message-State: AOJu0YxUUcR99RYaIJtpV5kleWGM8xOTEI9eoVWat5rnEIAKkOr+YXgP IQeXaYXIXc+v5r567URnHh8= X-Google-Smtp-Source: AGHT+IE4koB4qDjCJ45LUyaRkW/gFH1zOIBD+i7jzeyalIo35GuZxE3UenzLx5GGo/C875suPBMMag== X-Received: by 2002:a62:cf01:0:b0:6da:dc40:8a20 with SMTP id b1-20020a62cf01000000b006dadc408a20mr289291pfg.33.1704484454949; Fri, 05 Jan 2024 11:54:14 -0800 (PST) Received: from localhost ([2001:569:5083:f900:633:c2ff:fe19:db42]) by smtp.gmail.com with ESMTPSA id y8-20020a62ce08000000b006d990981439sm1836247pfg.49.2024.01.05.11.54.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 11:54:14 -0800 (PST) References: <87cyug4ye1.fsf@gmail.com> <87il486jyv.fsf@localhost> <87il47libr.fsf@westdri.ca> <87h6jry4oy.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 11:53:48 -0800 In-reply-to: <87h6jry4oy.fsf@localhost> Message-ID: <875y07lfoa.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=mhburle@gmail.com; helo=mail-pf1-x42d.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: -8.92 X-Spam-Score: -8.92 X-Migadu-Queue-Id: 49AEC4430A X-Migadu-Scanner: mx11.migadu.com X-TUID: IFeIrn0YOaLy I see. That makes sense. Thank you very much for getting back to me with info. This is much appreciated! Marie Ihor Radchenko writes: > Marie-Helene Burle writes: > >> 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 >> - >> ... >> So, indeed, not a bug and probably nothing you want to worry about. I'll just have to learn to live without those nice little org behaviours in non-org buffers. >> >> Note that the Reddit thread I linked in my prior email suggests that >> I am not 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 stopped in 9.7. > > You can still use org-meta-return at your own risk if you upgrade to the > latest Org mode. Just hide the warning message that is now displayed in > place of the error. > > The reason org-meta-return and some other functions worked in the past > is their internal implementation based on regular expressions. In the > newer Org mode, we are switching to internal implementation based on Org > parser - it is more accurate and fixes various bugs, but can fail > unpredictably when not in Org mode buffer. > > In future, there is a chance that Org parser will be able to run without > errors (although not necessarily accurately) in non-Org buffers, but it > is not something I am specifically looking to fix - rather a side effect > of some planned changes.