From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2qJxOx2Zs1/IWQAA0tVLHw (envelope-from ) for ; Tue, 17 Nov 2020 09:34:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QNe7Nh2Zs1+AcgAAB5/wlQ (envelope-from ) for ; Tue, 17 Nov 2020 09:34:21 +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 62D1E940430 for ; Tue, 17 Nov 2020 09:34:21 +0000 (UTC) Received: from localhost ([::1]:36636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kexNT-0006Dr-JJ for larch@yhetil.org; Tue, 17 Nov 2020 04:34:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kexLh-00052r-VX for emacs-orgmode@gnu.org; Tue, 17 Nov 2020 04:32:30 -0500 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:36889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kexLg-0002mg-7L for emacs-orgmode@gnu.org; Tue, 17 Nov 2020 04:32:29 -0500 Received: by mail-pl1-x636.google.com with SMTP id d3so9937856plo.4 for ; Tue, 17 Nov 2020 01:32:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=4R5rr1PXtpYZIakhYNZzFrx0tC6BiECmtUcjq9hZy4A=; b=I67qpi0DDB4zYrkYs8jRBNQjCgiGVFC/vy5b1RtdqpPIrHLR+fKzUYmj75j69af1vE nDOBsHkBOCyEM5HOxLHdej3qtn7kOHiyosWnafRsOQGUv/2y26ZGLGt/LTsYMbXiwObh AA5SUaYK5mx9pIilPyOoPiMgATOQ3uTEjneMe8pPIcbIUKfkIC3mQwFp+7J8hczaN/u8 VD8/7lUZR45gzoofTmoJu73Se2QtKLpG9sFH+Mpy5SxxX0KHtUPyLfN/+/HKlDN0/Qur dO2YBoyR75YBWraANR2cHLuapswD46OvZugZf6ugn2ZbsVPSDmJadu+fpyo/05MZK9ak vRyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=4R5rr1PXtpYZIakhYNZzFrx0tC6BiECmtUcjq9hZy4A=; b=sTwg79x9+xlNET8UChiD26RLLICEzVpu/nbGvDfq+nfjomeRjlh5x9iCBnAO+T9QCW RxO/J/KnUQsi/6V4vSbBooSXaE8Spkvo1vVDGSsQXHm1uskZ4ekIkkZqXKOAt3f9Il// J053KSiLNik2QsH2MshfMpX5vao5ZxNXdemXglFwIGgRoqw8sY+IkGjs4ZkYHyr+tH+p 2KnZ1MLflCIM7YQhKhWcFa25GA/1q2GLbF+r0xTzILFXUh8nHFYnJWqewgoF9Yq+edM2 n0bK34A+5nILAfaSeg2/D5u6e3L2nJYqaISBiFoy8X+kPmCjAgJjw0lYabn1pUF3Q7eu XGvQ== X-Gm-Message-State: AOAM530f6wh0h1FRHN4eZjQHRTS5vzVy3uD8wU6TvdrqOozLF0YiLcsP gyaBWhTENSt3vL7wfDaEaKg= X-Google-Smtp-Source: ABdhPJyKTqAJudhqb5blxRpKLaG9iJQFkapDrGrSKLErplKkpE/p6InF8m3NTCylXoc6SkrhrLBbMQ== X-Received: by 2002:a17:902:9042:b029:d6:fe3f:6688 with SMTP id w2-20020a1709029042b02900d6fe3f6688mr15794651plz.75.1605605546330; Tue, 17 Nov 2020 01:32:26 -0800 (PST) Received: from localhost ([155.94.198.5]) by smtp.gmail.com with ESMTPSA id k25sm20658216pfi.42.2020.11.17.01.32.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 01:32:25 -0800 (PST) From: Ihor Radchenko To: Gerardo Moro Subject: Re: Archiving repeated tasks under corresponding date tree for each repeated item In-Reply-To: References: <87lffj7zss.fsf@localhost> <87zh3mlvj7.fsf@localhost> Date: Tue, 17 Nov 2020 17:31:23 +0800 Message-ID: <87ft58nxck.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=yantar92@gmail.com; helo=mail-pl1-x636.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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 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: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=I67qpi0D; 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-Spam-Score: -1.21 X-TUID: MrVORg61cMCA > I actually now realized that your function will not unfortunately archive > each logged item (those located in the logbook) in its corresponding date > (!). > What it will do is to archive the whole tree under today's date without > deleting it from the original org file. You are right. It is expected behaviour. That's why I suggested to run it in org-trigger-hook, which will trigger at the day and time when you mark the task DONE. Best, Ihor Gerardo Moro writes: > Hi again, > > I actually now realized that your function will not unfortunately archive > each logged item (those located in the logbook) in its corresponding date > (!). > What it will do is to archive the whole tree under today's date without > deleting it from the original org file. > > For instance, > > * TODO REPEATED TASK SAMPLE > SCHEDULED: <2020-11-30 Mon +20d> > :PROPERTIES: > :STYLE: habit > :LAST_REPEAT: [2020-11-09 Mon 22:28] > :END: > :LOGBOOK: > - State "DONE" from "TODO" [2020-11-15 Sun 22:28] > - State "DONE" from "STARTED" [2020-11-14 Sat 22:17] > - State "DONE" from "STARTED" [2020-11-13 Fri 22:17] > - State "DONE" from "STARTED" [2020-11-11 Wed 22:17] > > If I position myself in any point in this entry, when I execute the > function it will archive the whole tree+subtree under today's date (the > date when it was archived). > The behaviour I was expecting is to archive each of the logged tasks under > their corresponding date (on the 11th, 13th, 14th and 15th of November). > Just to be clear :) > G > > El lun., 16 nov. 2020 a las 17:21, Gerardo Moro () > escribi=C3=B3: >