all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: brizly <org-bugtracker-2362@system.rocks>
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/)]
Date: Fri, 17 Nov 2023 09:01:11 +0000	[thread overview]
Message-ID: <874jhkda94.fsf@localhost> (raw)
In-Reply-To: <1ddfbafda160f5ed8f153914ed7c940fcc33947d.camel@system.rocks>

brizly <org-bugtracker-2362@system.rocks> 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 <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


      reply	other threads:[~2023-11-17  8:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-13  8:40 [BUG] error on org-add-note? [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)] brizly
2023-11-17  8:19 ` Ihor Radchenko
2023-11-17  8:43   ` brizly
2023-11-17  9:01     ` Ihor Radchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874jhkda94.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=org-bugtracker-2362@system.rocks \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.