From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +NqZLtK+WWFiswAAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 16:31:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WKBQKtK+WWE0VQAA1q6Kng (envelope-from ) for ; Sun, 03 Oct 2021 14:31:46 +0000 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 22A374616 for ; Sun, 3 Oct 2021 16:31:46 +0200 (CEST) Received: from localhost ([::1]:51794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mX2Wm-0005L8-Ir for larch@yhetil.org; Sun, 03 Oct 2021 10:31:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mX2W5-0005JA-2J for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 10:31:01 -0400 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]:40886) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mX2W2-0007D9-K1 for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 10:31:00 -0400 Received: by mail-io1-xd34.google.com with SMTP id r75so17309415iod.7 for ; Sun, 03 Oct 2021 07:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nploJpSoShi4jJfTkBWLJfHzheTFtxrbE2d4Cfni1r8=; b=PGaIyoWAiHiTmcArErlYIbO8djN9Fs2NIPdgFC2A0tNRhZiqKk6O4tsEw6kUKuRey1 TAUmQfwNzENt4hZLlMal7fnIdgR7sCqGWu9fpJbAPYvAs0o6B4FBnVbfbTde6R3pzUmr yec9Efb2JtNx8bNG27/x6uZjhc8N54qnP0KmzG/cquX0qhKTtam6crRlWNxPi+bfYhaG dNGUI4S2Ts9C2wI9Otc+cGbrciKyX5YroljeHheK1yTN1JdyQdpME0OrsE/rpSAnZiK0 59T5d4qAzt+4+jjdW+YCPVzJ++UeCuog77FeCupam+E8Cg1LHSre+/pkg7SnKLNLI5It SIrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nploJpSoShi4jJfTkBWLJfHzheTFtxrbE2d4Cfni1r8=; b=o+zRh8Cqbv2wsJx2DJLvURGUikMQAHeXL1S9uhYAdDNZ3CyncXtk5/cyVV9makpu7K KXgHyci9SPMgVWvjZ++ZixzbxlFCfmnL6FXqim+/sHXXymXqVJzn1BYzGfjrrR7Nzmez ++PTmOem5JhmpTjlX/kxU44CCv+u/1UG8RZRXp/sxdRyrzLwCFxEeZoCuyPPxzmD4SsH wC5j3XT+wQgyNo3Ipf741MhxQLwiGHVwzu9GqfrvCypHsFZ94dHn/jEnGeJqJSPGtJGk R+Ub/JmnMYAfWU44tzQ0m1Mc97RV3jo35S4eJqqIqglYf7QjF7cf4AmTPktzkqtHJr7l XJhA== X-Gm-Message-State: AOAM530zUs1GoYcqrbi6HNwN3iQ5XKfbCWKDuDwSYRFbZMRJeJuUjG8X 5M3xWOCPBc8eztQQKEPGKaHT9dfLl7SCNNnPqR8= X-Google-Smtp-Source: ABdhPJzBMf7WYZefCVzBw6Y2XMo8WGpCS99joertwa1S1OJCuq5aX09xcFre7n+3/V4He0Xa3oNoYWKtVxRFUjtA7LY= X-Received: by 2002:a6b:cd8b:: with SMTP id d133mr6273992iog.88.1633271456430; Sun, 03 Oct 2021 07:30:56 -0700 (PDT) MIME-Version: 1.0 References: <87ee93yeac.fsf@localhost> In-Reply-To: <87ee93yeac.fsf@localhost> From: Trevoke Date: Sun, 3 Oct 2021 10:30:45 -0400 Message-ID: Subject: Re: Manually/programmatically adding a state transition message To: Ihor Radchenko Content-Type: multipart/alternative; boundary="000000000000fb7ff505cd73a463" Received-SPF: pass client-ip=2607:f8b0:4864:20::d34; envelope-from=trevoke@gmail.com; helo=mail-io1-xd34.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org-Mode mailing list Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633271506; 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=nploJpSoShi4jJfTkBWLJfHzheTFtxrbE2d4Cfni1r8=; b=BErVjxfkGzRZVs5Ud7ARbxRxbvf51Q49jIHh9zq4YXUuTMoALi+7VaxFULYjGdXO7M27MM d9kQDq4h+dqZOLq6nNuB/gA6SwKOT1C+siMKQvhAP/aIW4Sfa4BGxV+ZZlzqqjePkpy6d5 PT3TBZd8sCX94kYosIE/HXIZISJb5fQbw1PmXxCEkHKaBvz/4k+bUA2juUSeX3rWOnf4lb qbeH6Dype5gf4ifdWBBO01iCtv1PiCbDI/lA118jfOCvyP1OjTYVUcUGmLGpWoGXcQ3Gjy K1jipmL/eQWvMNcOJ9i4OZXHDQLHiLoAVHKEAgXCWFySzAY/Sa5WvoWmloY86A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633271506; a=rsa-sha256; cv=none; b=Pe9V/Hf4XKvAgC7E/CHfacVOR73FGt0OLEek4wsK9SFUEfTfjM/KoO8m6Lhm/nujjOfhfG EED/586YKj5VY1mdYJ5Fuh0mb6Q/xcza7L1AkiadLXxqf+/ElhqCAZ0YGASFWikAcz/jWe K52VPzijXcUZK8MANmyWogFlJq7q2HH7P2jcB+PVpawvKjsKR5jhyMIeJuHNP+xFMbeKzA u36UOVnfwnFqiA+l0dIDusoXjP8l9dNL0ZjeGD9MOM3aN3SIHimFmj5BKW9qnEcJ2/EYRq 4rdEwQAgqqLF+Ja05w0gAT+O60lg9vF7vjIyoRGElWQbPHLj4mYDkxxZ2Wnxkw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=PGaIyoWA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=PGaIyoWA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 22A374616 X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6oRXRi50eWwZ --000000000000fb7ff505cd73a463 Content-Type: text/plain; charset="UTF-8" On Sat, Oct 2, 2021 at 5:18 AM Ihor Radchenko 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 --000000000000fb7ff505cd73a463 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sat, Oct 2, 2021 at 5:18 AM Ihor R= adchenko <yantar92@gmail.com&g= t; 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 o= ut and possibly reimplement all the logic of how it finds the place where t= o add the note so I can insert the string there myself.

Sincerely,
-Aldric
--000000000000fb7ff505cd73a463--