From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0JEEOpilamJtggAAbAwnHQ (envelope-from ) for ; Thu, 28 Apr 2022 16:32:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +MfsOZilamLLrgAAauVa8A (envelope-from ) for ; Thu, 28 Apr 2022 16:32:56 +0200 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 7E114EC18 for ; Thu, 28 Apr 2022 16:32:56 +0200 (CEST) Received: from localhost ([::1]:59720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nk5CR-0001ge-Nu for larch@yhetil.org; Thu, 28 Apr 2022 10:32:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nk5BF-0001TD-Uy for emacs-orgmode@gnu.org; Thu, 28 Apr 2022 10:31:41 -0400 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]:38496) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nk5BE-0004xC-4g for emacs-orgmode@gnu.org; Thu, 28 Apr 2022 10:31:41 -0400 Received: by mail-qk1-x735.google.com with SMTP id a22so647328qkl.5 for ; Thu, 28 Apr 2022 07:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=I0lQFf5Y9knC5mZI72RUOrAd65pAOjv2jT9RSDGqaYk=; b=YkAfCfGG050kNe6VOGjUi6WzqxQbxpCCqHSrQ3uePCrgxRpRraPzXYKx7ea/NSQkPf OdnZ1q3QEjkTr4czQyzPQzj+LcNacAeEYm/VaOYuzrfDlzb1J56WFqaDUwHqp4iJvo3x ypfQsdHpceB47fMg/sfBpbYdXgf25qLLimiP0YPPBVSi2rQfW/nyLg9/l5ITuIvQhSIr 5DVNc7Qa63TIZmPokCWzAiotQYs4MMduCi+JqVG0StNZMouQKKoznr/pIe+uypeqAVH1 ZsXA0HHR/H5MGXElD3d7fAtyTMrUl0bENwTM8reLGSCLVhPYX202c2qAeYmJz6GQYUHl ly0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=I0lQFf5Y9knC5mZI72RUOrAd65pAOjv2jT9RSDGqaYk=; b=OiMPjKtZBYOJNwwuuwTnpxxZ16NuKwceX4mj3NWdztuTcX9oc3Yda7aK5pAHgvlBqc rlhiK4og4OTPLpwB7Z8iMVrFbnFmeNjP/o5l+7oYVk5XCZallHWfxAaJaJ0VLjf9J8x0 lApPu4S+n07nAQskSTlE2RYYkbgxDBNv4z8fcM+PuAHZOCIXiR1YRbzQWndIVJ6PxmXC 69tOfoH/gkeFODnPwswfc5Y254aEzJe0tNFMnJ2piEWab5IspvhyAxXUcEl8UAxsRjrH q+SPXLjQ0/oNiEUu2tDxAXMOT8RggJwKrr/rD21n11KjziTU3l1lux9FYlKG4LCcmbdD G2/w== X-Gm-Message-State: AOAM531OpWibZw/YfMLGOXKK8ExrDtcqann6dDX2mF7l9Dga72moiD78 it276nzzLQmm7jZGQ9vIbLs= X-Google-Smtp-Source: ABdhPJx2eGw/nZZWz8dfkJuXyemrVjBQDCiWaKQIQI1mihQVDBgtIoeq0ugH/LRCtBLaqszAMHah6g== X-Received: by 2002:a37:55c2:0:b0:479:8293:d7d0 with SMTP id j185-20020a3755c2000000b004798293d7d0mr20131834qkb.182.1651156298751; Thu, 28 Apr 2022 07:31:38 -0700 (PDT) Received: from localhost ([66.150.196.58]) by smtp.gmail.com with ESMTPSA id a4-20020ac85b84000000b002f340e3c703sm78389qta.41.2022.04.28.07.31.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Apr 2022 07:31:38 -0700 (PDT) From: Ihor Radchenko To: Florian Lindner Subject: Re: log-done and org-after-todo-state-change-hook In-Reply-To: <5a9ce1f6-0b28-6144-7300-836146b30c40@xgm.de> References: <5a9ce1f6-0b28-6144-7300-836146b30c40@xgm.de> Date: Thu, 28 Apr 2022 22:32:28 +0800 Message-ID: <87zgk56zyb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::735; envelope-from=yantar92@gmail.com; helo=mail-qk1-x735.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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: , Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651156376; 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=I0lQFf5Y9knC5mZI72RUOrAd65pAOjv2jT9RSDGqaYk=; b=F250kqwuxRWJwPkKv27lVa8kAYr4TBCI6nou1NnZPyhSccwnCZpbVNAGsw+OD5YtqBfhkY kHVCNeHiPCWtfNENwGa6AyWwQ9E3KcyqrGazCDtD/V+Tus1I+QbCMi9vhEeYLG3WQlKbbv zfDcF5kZ70Ph2HjTwOTJgSs1KBQJzRhzoUYITfozIcYEKvI1IF2fqB1Hv28C92mkGW3fui 91PfC9Bz27d6Xq22jy9kOhoC8Rw6IYF3GvImpMkForxVyUou6UnRHVpZz3I1QcqbsIRKYk boCHPModjMJGt/wYXsSsCRD9f9TKx+GNLYcmF8h6SsR5gAoa9WF5OPhtQ+/EYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651156376; a=rsa-sha256; cv=none; b=nnCAVD03M4F8BUGUwS2CkGbg2AryApNNx8OwXTccQGJ0HwXMmEJHbWH4LAwramx39YXTx5 9SFRSrzyAXN91VHkP6xCYny9j6xYDYOlB0OkTrfL8zVXuRMD97CybfP8cwW7ucWx5ItRyz fNK0YyXMs5Ptma2kpvnM6ln+MoYcwdctjettQg24IQ8j8cRFZrW050Kf19Mi7vW254GMcH SF4DyZ04v2uk7IloHspG8vIOj136sxbnxhG+CpgsZ2DRe58oFSpX4c3yL9EPoLlcZi6i9o BxpWyWQ51AUZPBo3qLxwHMPs6L6Ic2li5z+Zavlm3O28XhB03z1rg3c2MTewJw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YkAfCfGG; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -8.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YkAfCfGG; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 7E114EC18 X-Spam-Score: -8.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: ltFbIebjH0SM Florian Lindner writes: > I have an org-todo-keywords like "DONE(d!)" which logs a time stamp > everytime that todo is reached. > > I also use org-after-todo-state-change-hook to copy that node somewhere > else, as soon as it is finished. > > My problem now is that the logging seems to happen after hook, which > made me end up with a original node: > ... > How can make the hook to be executed after the logging of done or some > other way to have the log entry included in the copy? There is currently no hook running after you store note. However, you can add an :after advice to org-store-log-note. Best, Ihor