From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 QDw+In0rV2V5JQAAauVa8A:P1 (envelope-from ) for ; Fri, 17 Nov 2023 09:59:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QDw+In0rV2V5JQAAauVa8A (envelope-from ) for ; Fri, 17 Nov 2023 09:59:41 +0100 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 70E15617A3 for ; Fri, 17 Nov 2023 09:59:41 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="kyG/8+jm"; 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=1700211581; 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=hmvBKWe6QDf7/eKNpPzFtQg8zE7Bxd/iPy577oNgjWg=; b=nMXN+fxub2cFbk1yKacL7/7XMt7ytDyBfwPe6+hG478apNWR4SVpOlyLmVP9B6q0KET/N+ 7qkS80pI0X2CO0ga3txgrWxYKSdZFfaAaAY92uC1pAZhtPx4Z/fgP50iqJyc/7JQjo8dsY os4CDEKo8GtuyGAXJD/bQWybwn6rEL+z7/hDSpvOEKFALWq3SI1u4ibUgo9Y3u8IlyJ169 yzsLhPBGTfs8EtevM/lTNDyiMaKFikdRayoQ3qO+oXL2Kif/ZP1vg259vfVljgSjn6OSI3 jX041rsRqQGPFIFc//dIiq67sYMUWnPOnwdmGVKVEn1pIdkttrlSpmfpNzXw6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="kyG/8+jm"; 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-Seal: i=1; s=key1; d=yhetil.org; t=1700211581; a=rsa-sha256; cv=none; b=VFzxi2AroNisPRVgGmwS84w9I1ceKV4iJ2De2teNOzwwAK93GMbWj/8JQxx0lr99dNaH0e l1jNfyZV1GyF6UApqtXWoTnUbIUdMZ0B2Iel3pkzV1DUMLei3vm8dIa8Xn3mLToA6kzehi cRSNvsIUH1/BzrgaadI3h4GzjCUzdNrY+BgOfXMyHhdZ9pH7GWARUZ5JN1cU1b9aY7XKG2 vItaK9inw9JRzxp61vJsAb/pIWMJzBTrLX+Rym2LdoNeX7mIspLJA/0sXKvC2XcvKB2Ndp pmc4gktxwRiDRi2+5UUE0eunzsvvxeaa4WRuhzqZkRpVwOCaJtC+1PI8XIJRcA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3ugg-00082Y-Dx; Fri, 17 Nov 2023 03:58:54 -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 1r3ugc-0007uR-Df for emacs-orgmode@gnu.org; Fri, 17 Nov 2023 03:58:51 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3uga-0003bv-3d for emacs-orgmode@gnu.org; Fri, 17 Nov 2023 03:58:50 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B2392240105 for ; Fri, 17 Nov 2023 09:58:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1700211524; bh=SITY0f8nH+ns764FPQMEQjEzWd+TLmqETfrlsmcJp5Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=kyG/8+jmsSxDygt1N8Id+x4FL7j8UJSwzGpxseXjksvxGYidcwV0O17hX+hQL5Q5W 7eIJmRUu7CYzPudKney0jKGu92DpA/cCJbtSg3yVr2lM2evM9f2Y4TYLPUevxieixk k11ZwhAQ8D+/UQIGIAowMW6LySfahCENEuilzM1l+XJHJapww4MyHF1baKvxBV50te qhJeEyLxBVrcdK4Ej4rmgAm/NQKwLqAR9UDfq951eqt0ANYmwdKzsSW0gjQvMmNkZU HG55UXVQN1qtDtww9E7gUHm98cFV+ASw6DJulspTZPDh2pmAOiBVe+2glsyQcj9v+b ziiZiFjdkduZQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SWrRR5y05z6tyM; Fri, 17 Nov 2023 09:58:43 +0100 (CET) From: Ihor Radchenko To: brizly Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] error on org-add-note? [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)] In-Reply-To: <1ddfbafda160f5ed8f153914ed7c940fcc33947d.camel@system.rocks> References: <59229b7c6cd652d839b11a495f309286b865ecce.camel@system.rocks> <87cyw8dc6w.fsf@localhost> <1ddfbafda160f5ed8f153914ed7c940fcc33947d.camel@system.rocks> Date: Fri, 17 Nov 2023 09:01:11 +0000 Message-ID: <874jhkda94.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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-Spam-Score: -8.54 X-Spam-Score: -8.54 X-Migadu-Queue-Id: 70E15617A3 X-Migadu-Scanner: mx13.migadu.com X-TUID: qQBb5EYrMGhI brizly writes: >> Do I understand correctly that you tried to run M-x org-add-note from >> a >> non-Org file? >> > > That is correct, perhaps my fault, but surprising to get a stacktrace? `org-add-note' assumes that it is called from an Org buffer. So, as you may expect, all kinds of unexpected things might happen when it is called outside Org buffer. Starting from Emacs 28, we are able to limit commands to show up only in Org buffers (if necessary). However, we still support Emacs 27 that does not have that feature, and I know no good way to add mode declaration to commands without breaking Emacs 27. So, for now, we should leave the situation as is, until Emacs 30 is release when we can drop Emacs 27 support. I will leave this open until then. Confirmed. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at