all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Trevoke <trevoke@gmail.com>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: Org-Mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Manually/programmatically adding a state transition message
Date: Sun, 3 Oct 2021 10:30:45 -0400	[thread overview]
Message-ID: <CAHGcNQ_R23Ob+bN6YS0jxQTUSG0SbgAKzGqEhjUeNx2hLp6pCw@mail.gmail.com> (raw)
In-Reply-To: <87ee93yeac.fsf@localhost>

[-- Attachment #1: Type: text/plain, Size: 839 bytes --]

On Sat, Oct 2, 2021 at 5:18 AM Ihor Radchenko <yantar92@gmail.com> wrote:

> It may be fragile, but you can try let-binding
>
> (org-inhibit-logging 'note)
>
> around elisp org-todo call
>
> Hi Ihor,

If I understand correctly, this will prevent the addition of a note; I have
already found a way to do this. Please let me know if I am mistaken.
What I am looking for is a way to programmatically, without user input,
change the state and add an automatic note.

If I understand correctly, org-mode implements the addition of the note
through the function `org-add-log-note` and `org-store-log-note`, and I was
really hoping I wouldn't have to sift through these two functions to figure
out and possibly reimplement all the logic of how it finds the place where
to add the note so I can insert the string there myself.

Sincerely,
-Aldric

[-- Attachment #2: Type: text/html, Size: 1256 bytes --]

  reply	other threads:[~2021-10-03 14:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-18 18:28 Manually/programmatically adding a state transition message Trevoke
2021-10-02  9:19 ` Ihor Radchenko
2021-10-03 14:30   ` Trevoke [this message]
2021-10-03 14:54     ` Ihor Radchenko

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=CAHGcNQ_R23Ob+bN6YS0jxQTUSG0SbgAKzGqEhjUeNx2hLp6pCw@mail.gmail.com \
    --to=trevoke@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@gmail.com \
    /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.