From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wGduHq81U2N3ggAAbAwnHQ (envelope-from ) for ; Sat, 22 Oct 2022 02:13:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sESXHq81U2NZAgAA9RJhRA (envelope-from ) for ; Sat, 22 Oct 2022 02:13:35 +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 144C43B9C9 for ; Sat, 22 Oct 2022 02:13:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1om0Cp-000496-70; Fri, 21 Oct 2022 18:09:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oly42-0004GV-Lf for emacs-orgmode@gnu.org; Fri, 21 Oct 2022 15:52:18 -0400 Received: from outbound2sev.lav.puc.rediris.es ([130.206.19.172] helo=mx02.puc.rediris.es) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olxoI-0006i3-Ab for emacs-orgmode@gnu.org; Fri, 21 Oct 2022 15:36:06 -0400 Received: from martini.ll.iac.es (martini.ll.iac.es [161.72.2.74]) by mx02.puc.rediris.es with ESMTP id 29LJZljE024102-29LJZljF024102 for ; Fri, 21 Oct 2022 21:35:49 +0200 Received: by martini.ll.iac.es (Postfix, from userid 203) id 943E8414C1; Fri, 21 Oct 2022 20:35:46 +0100 (WEST) Received: from sieladon (sieladon.dyn.iac.es [IPv6:2001:720:1610:50ce::fefa:611f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by martini.ll.iac.es (Postfix) with ESMTPSA id 8726E414BF; Fri, 21 Oct 2022 20:35:46 +0100 (WEST) From: Angel de Vicente To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: Do not show a TODO item in the global TODO list until certain date? References: <87a672gv9y.fsf@gmail.com> <59454a70-bf7f-40e3-a3d8-d9e7fc66da4d@www.fastmail.com> <87wna66xr4.fsf@gmail.com> <87fsguxhco.fsf@localhost> <87sfksq4db.fsf@gmail.com> <87edvdwadb.fsf@localhost> Date: Fri, 21 Oct 2022 20:35:46 +0100 In-Reply-To: <87edvdwadb.fsf@localhost> (Ihor Radchenko's message of "Wed, 12 Oct 2022 19:26:56 +0800") Message-ID: <87wn8t3r71.fsf@iac.es> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-FE-Policy-ID: 23:6:0:SYSTEM DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; d=iac.es; s=dkim; c=relaxed/relaxed; h=from:to:cc:subject:references:date:message-id:mime-version:content-type; bh=T9SNAr2/x4QotpfpC/LsqNOfZQ3nkVwOs0RG8vYOqGU=; b=fYccpM4pahyJE31uQzw52EYm7lQheuQNn5o9Z8IQAI+lRKZF4egkBmRLFzsvVgnrq52URtunPBiz oUjziZHoZ84GaiYmln1K4Lii/mpyGjzJvWdtjmqglVCWS54B4FXwD8/rcENnhj/R4WDj0qPo+Bk3 VmnNUr2boC8N9iQrzTb9WZbGJlQ7FIuM7BcWTqqMAZbvaDn+QMVA7F7HNUX9LoXfHBWwr8wCDQLb Pr5FlNe+lBATE1nBYx95TO5HDGzGT3ZSLYNdVPvIeuaWymJrROpo3VAEdChVIsaOKdL4MhN5+kb8 ubMfNnus1IA1BL9musGY9bCwKUSZRT2qaahi3g== Received-SPF: pass client-ip=130.206.19.172; envelope-from=angel.de.vicente@iac.es; helo=mx02.puc.rediris.es 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, MIME_QP_LONG_LINE=0.001, 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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666397615; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=T9SNAr2/x4QotpfpC/LsqNOfZQ3nkVwOs0RG8vYOqGU=; b=ug/FFajO8vZ4IJhJ/j2SVroITKWe7Uy282K4HX9594qRz3jQavvNwUvwI8qZX+PhvbDv5W T5H3gp9NDVD29uT5x7s9zyb4s95bJjd7kvNZM/8hQanXKDLwImabek1ueyNIYezCMXkpDC LIkO4QZIAMdF/rSdstyTKZrIwkHzFWHNHBw+QBimEK0TGWBd3yjnQa7xWb+CxHpnX38x9S LJK1QlUBhAOcoGNvDnF96IORBKrDTD5VB/f6/+20TzD6+JFgoH4xv4HfYOSaSQC+w7QK9e /6x2OQi+tefobAbOqpi8qfAaPRTylV5qWAnjSigaA1FHaxesm9C/XgJe49b4xQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666397615; a=rsa-sha256; cv=none; b=Q+xKhfeuHCDXeaAhFhqqBmQiXszRo+kUHDC7fZy+c20RxT2yVFGSFadk/UyukVi1Q7Sevu 4JCw2Tzm9dV2Opmo7TQfeX/t9I1jvC9Fix/k4mm4yP+RivFtzL2Y8obG6mgrVoXZaVPEy8 hC4w0C5l1JV1DPEIKGjikVdwym9FPKlkJB1DFaZEhGsQa2lB5ejiiTNZrcluDpdzY2lZjk wfhXqGZkvTPj91XcjQqf4fAb6hiS1hahDxGHyMjzwshmPQrpcLc/D3jp9jHzFVc2VmdPPl I6Lj17bMgkswQJeTyl3xMa+iVpdmhLhZEjh1OpAUY70hzpb/0in0ukiEsjvoAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=iac.es header.s=dkim header.b=fYccpM4p; dmarc=none; 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: -5.69 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=iac.es header.s=dkim header.b=fYccpM4p; dmarc=none; 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: 144C43B9C9 X-Spam-Score: -5.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: TqscZLfPvvwH Hello,=20 Ihor Radchenko writes: > Try the following adjusted version: > > (defun org-agenda-skip-before-SHOWFROMDATE-property () > "Skip agenda item if :SHOWFROMDATE: property is set and the day is befo= re it" > (when-let* ((showfromdate (if (bound-and-true-p org-ql--current-element) > (org-element-property :SHOWFROMDATE (org-= element-lineage org-ql--current-element '(headline) t)) > (org-entry-get (point) "SHOWFROMDATE"))) > (showfromdate (unless (seq-empty-p showfromdate) (ts-parse-= org showfromdate))) > (currenttime (ts-now))) > (when (ts< currenttime showfromdate) > (or (outline-next-heading) (point-max))))) Fantastic. It does work now beautifully. [I was about to tell you that it was still not working, because I was still trying with the following TODO item: ,---- | ** TODO test :perso= nal: |=20 | :PROPERTIES: | :SHOWFROMDATE: 2022-10-16 | :END: `---- and then I realized that the empty line before :PROPERTIES: was breaking it. With no empty line it works fine (I should've used org-command-set-SHOWFROMDATE-property from the beginning, which sets the PROPERTIES in the right format). ,---- | ** TODO test :perso= nal: | :PROPERTIES: | :SHOWFROMDATE: 2022-10-16 | :END: `---- Many thanks for your help. My TODO list is going to become a lot cleaner from now! Cheers, --=20 =C3=81ngel de Vicente Research Software Engineer (Supercomputing and BigData) Tel.: +34 922-605-747 Web.: http://research.iac.es/proyecto/polmag/ --------------------------------------------------------------------------------------------- AVISO LEGAL: Este mensaje puede contener información confidencial y/o privilegiada. Si usted no es el destinatario final del mismo o lo ha recibido por error, por favor notifíquelo al remitente inmediatamente. Cualquier uso no autorizadas del contenido de este mensaje está estrictamente prohibida. Más información en: https://www.iac.es/es/responsabilidad-legal DISCLAIMER: This message may contain confidential and / or privileged information. If you are not the final recipient or have received it in error, please notify the sender immediately. Any unauthorized use of the content of this message is strictly prohibited. More information: https://www.iac.es/en/disclaimer