From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cIFHDeLKNGF1FAEAgWs5BA (envelope-from ) for ; Sun, 05 Sep 2021 15:49:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cJcICeLKNGGVbwAAbx9fmQ (envelope-from ) for ; Sun, 05 Sep 2021 13:49:22 +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 A7DB01732 for ; Sun, 5 Sep 2021 15:49:21 +0200 (CEST) Received: from localhost ([::1]:49082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMsWO-0002fC-MK for larch@yhetil.org; Sun, 05 Sep 2021 09:49:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMsVP-0002dR-7D for emacs-orgmode@gnu.org; Sun, 05 Sep 2021 09:48:19 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:40712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMsVN-0007Y2-Ez for emacs-orgmode@gnu.org; Sun, 05 Sep 2021 09:48:18 -0400 Received: by mail-pj1-x1030.google.com with SMTP id n13-20020a17090a4e0d00b0017946980d8dso2655799pjh.5 for ; Sun, 05 Sep 2021 06:48:17 -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=qWRr14uEM+l3+k1G6ylv3fV0BJtQCCKg/Y5gH62WTZY=; b=Gbqqtw1OscEpZUHE+3CeX/D9wwtQm6XMwgzcZNnDRBLPnmDr2CYXYPuc4zXHyQQjnX RibRvNOVW7OyWPDIJRrafG2ajXtEUuOyMWSSCyC1e8r+Ymp5WJO/UYed1gpyf/C6isBT oIHTFAm483w4vXr/26oRwoZetqDxhhN69FYhowV5qvUIMjgsQiQOW/E8lrOtKOB+9UFT NT+bFYMs1ByM7BiEK+WVXVDJdWXoL0IiJ/foOHkf2VVPDd7+A9cXTcjf8W3BsKy7/Xux qD1HKzo8oKvLZPY22DyIt4DzYi/FIsZZ7zdY9QMloE60gkVK5t85JypIMYX0O5NnyPXC Fywg== 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; bh=qWRr14uEM+l3+k1G6ylv3fV0BJtQCCKg/Y5gH62WTZY=; b=Rhnmmsd2ndnIkK/THaJts5hKpjC4pYv1W00164VtZNGWUVe/0DHxRAE+ZlY8JjUZ0M Zbr5UVlAJ7rty9t+QLSxWdikPk6mxpevTb/B3JqBJf2lyMQogtJ/EmgrhlXH9VQLvaJz H++z3+z+oJDLtpUC8DTvA1UiA2aUtb1VNEIXa59kA0xGC477BJKXFByZKzvoBl9Kag5X rdPiuRTCuT35xwzA8H7TA+GP3u+loUZ2D7Vrnk0gKZ7ykgI63ZRdpOPvI1FOWzpckMGN HTU0V/j+jfO4htj/yBh1E+egpnNc4qqlpJzL5BE+ceI6/hvpbQYx3qXvnzgCIfu4b9rj 3f7A== X-Gm-Message-State: AOAM532T7T69qgXBdnEITGYdd9mHZyLGLeYR0K4DUvf4AOqiSCYZkW8p csrZAQ3xF4kgLnHNKvcTisOEkNyA/c7b4Lf4mto= X-Google-Smtp-Source: ABdhPJz+tqccP/y0+iegK2kV8xgyQFWA3262SK5Ndr8huLXq5quglo8x4UoA96kQZSCOlwyu6OYLXg== X-Received: by 2002:a17:902:8543:b029:12d:461f:a6a8 with SMTP id d3-20020a1709028543b029012d461fa6a8mr6915316plo.1.1630849695891; Sun, 05 Sep 2021 06:48:15 -0700 (PDT) Received: from localhost ([139.59.56.239]) by smtp.gmail.com with ESMTPSA id fv14sm4708648pjb.43.2021.09.05.06.48.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Sep 2021 06:48:15 -0700 (PDT) From: Ihor Radchenko To: TRS-80 Subject: Re: Remove old clock entries In-Reply-To: <61be8a8c827b68af899b45b247bfbf9b@isnotmyreal.name> References: <87pn0jcs3u.fsf@free.fr> <61be8a8c827b68af899b45b247bfbf9b@isnotmyreal.name> Date: Sun, 05 Sep 2021 21:49:10 +0800 Message-ID: <874kazw2sp.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1030.google.com 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@gnu.org 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=1630849761; 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=qWRr14uEM+l3+k1G6ylv3fV0BJtQCCKg/Y5gH62WTZY=; b=BiUm1vJRR56e10zCcYMP1C5MGlOMQssIp1VoC39U0tp32qoMOldbYwsyEmk8uH/4inwtFN +J4g1r1ujzBUn2fFS0c0gyln57rS3Q7WyooFZ2E4n7m7ZpAKZr9BDZcYSBEib9WBQUnqTD HVwu1nZ1+8vHfhJQm1mq9giO6sq5aT7jluzodMwLH0DeRVe+MI677w74N4CWUZzvUzejz9 YiRFgsOj4y9EudrTXTIKp6J1dv9ZcBjGVcDbU212PlaIAGs7vkqCxVs9+sTfDjFSUte0VL tzQFKjbGLzWQYi+7T19zZ0WwrVfSQmY/JsTorGbIGXWib5HLJG0FJ8X/cap2vw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630849761; a=rsa-sha256; cv=none; b=tRcL6bbSmRXZa7OhfOzyedboPtwN0noiGn+hi46zRPWfNNPLmw7+hTA/OX25zCdWpQcH7C d22i7BiZt2UyRR8p5sldy2+w2Yu5wly4SwWDx6sNU3o9QdhE6nMLqDX0adOJ0o/inPNQT0 tsSbkhVv7r+8VdLs8esLR09koQxLhUlcykY3gOSiQpt9yuGmE/PtGSqRWD7RuQERnPpCnb PBg3JEXq3nHFOX8xI/oqOV/6n/nLmi6M0BR3oLFU+d2J5jfD0xJ/sZbsfqBvzcnM7TsH0g b0/t3QCPpHz5Q+BWoMNhOTvrQMlyFKYg+iSgjg3fZkgau7+2Fcd68vhGi9L7rA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Gbqqtw1O; 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: -2.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Gbqqtw1O; 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: A7DB01732 X-Spam-Score: -2.61 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8KbdWFL1VNfT TRS-80 writes: > I was thinking about incorporating some handling of these entries into > a custom archival function. Which would also handle some other things > at the same time. But so far, it's just some notes and thoughts about > desired functionality and how it might work. And I keep monitoring > the mailing list for some better ideas. :) FYI: Credit: https://www.reddit.com/r/orgmode/comments/dg43hs/can_i_archive_a_property_drawer/f3frk2n/ #+begin_src emacs-lisp (defun my/org-archive-delete-logbook () (save-excursion (org-end-of-meta-data) (let ((elm (org-element-at-point))) (when (and (equal (org-element-type elm) 'drawer) (equal (org-element-property :drawer-name elm) "LOGBOOK")) (delete-region (org-element-property :begin elm) (org-element-property :end elm)))))) (defun my/org-archive-without-delete () (cl-letf (((symbol-function 'org-cut-subtree) (lambda () nil))) (org-archive-subtree))) (defun my/org-archive-logbook () (interactive) (my/org-archive-without-delete) (my/org-archive-delete-logbook)) #+end_src Best, Ihor