From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YBSUEJikRmMyfAEAbAwnHQ (envelope-from ) for ; Wed, 12 Oct 2022 13:27:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0I+tEJikRmMctwAA9RJhRA (envelope-from ) for ; Wed, 12 Oct 2022 13:27:20 +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 EA639106AE for ; Wed, 12 Oct 2022 13:27:19 +0200 (CEST) Received: from localhost ([::1]:57032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiZtO-00014W-My for larch@yhetil.org; Wed, 12 Oct 2022 07:27:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiZsK-00012N-NT for emacs-orgmode@gnu.org; Wed, 12 Oct 2022 07:26:12 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:34791) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiZsI-00075z-Sc for emacs-orgmode@gnu.org; Wed, 12 Oct 2022 07:26:12 -0400 Received: by mail-pl1-x62b.google.com with SMTP id n7so15984520plp.1 for ; Wed, 12 Oct 2022 04:26:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=usASkWkHZVsNmUiPICQhLwc9GUkiGzfUpmfJ6ksoQqc=; b=LHb1vsfkcLDzeWzC4+Egkz0IADidf5x1T8zMsEoV9LnmFjkKkt6ZzLrQw2W9qfEHQM PjIHc4LDDvCNL1IbNfwcXMnQJGTeH+JJvKJKrv1lAAtqJGA6jvrD5RV3paxol+Lv0KU0 3esT8YSuhij8sflbFK50xJfHHTE29yPR67hWwpBdpXWeHtf1v3sNu5Er4x6WqUGlqhq3 paHMQnljKdOQ4nOxqkatgKxNUKYPqlntsr++HypvyjfHobBJ/a/7xouyj6uwpBdeEdU9 nRk/EILWl5K6P0gE8SCn7JBpXhr6PEoAwAcpxl/qPnlGBU0prvGzeK1QnJ9lNm6rPcLr ISLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=usASkWkHZVsNmUiPICQhLwc9GUkiGzfUpmfJ6ksoQqc=; b=e4jtqHi8dGjS2z056dSnceDjvtyfmzAUS+IEPfmtbyVcYRenrP1+u3fJ7fuCD7ULu3 xe7xIJr2/zLMGuUVHS6w+Ot22RljhXTuh2GFm+XRLrXWQ2qdB/1BfBjLcb9GG+skjBy1 imZhixbzKsILGE9vwFF09gH917XvnsHpeKgUGvzg8bOWekKg/9abCl3K+ImatZpt0caP ZRbM4r3qoOkMuUfkbCGRpkLLxDDL2YThcR9wVpVBlrT5DQgelQaUjzYWy/hBHPhGrz7K SLfyVVAdRKQl2y8ME/X5tGLa9g/uERN0qLw9rJ2j9ReT2FDmGq6veBBlloKpsCS3mmcE T8nA== X-Gm-Message-State: ACrzQf2erSujSDeOhRpuF/lh5+nvTSn7F2l6jONK0V7B69dkpa15PTxX b5OrvF58N/GaG9er0TPi8K0= X-Google-Smtp-Source: AMsMyM727e7ZztkJ9d1XSiW8nPGv5mtwC2jSdza3f64rgqqwTj89hmu73ZboesCKTXWZwGllObR85A== X-Received: by 2002:a17:902:b70c:b0:179:eb79:cf9a with SMTP id d12-20020a170902b70c00b00179eb79cf9amr29334795pls.130.1665573969096; Wed, 12 Oct 2022 04:26:09 -0700 (PDT) Received: from localhost ([2409:8970:af2:32f:6c23:3ad5:f37d:541b]) by smtp.gmail.com with ESMTPSA id r14-20020aa7962e000000b00538056de6ecsm10995225pfg.52.2022.10.12.04.26.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Oct 2022 04:26:07 -0700 (PDT) From: Ihor Radchenko To: Angel de Vicente Cc: emacs-orgmode@gnu.org Subject: Re: Do not show a TODO item in the global TODO list until certain date? In-Reply-To: <87sfksq4db.fsf@gmail.com> References: <87a672gv9y.fsf@gmail.com> <59454a70-bf7f-40e3-a3d8-d9e7fc66da4d@www.fastmail.com> <87wna66xr4.fsf@gmail.com> <87fsguxhco.fsf@localhost> <87sfksq4db.fsf@gmail.com> Date: Wed, 12 Oct 2022 19:26:56 +0800 Message-ID: <87edvdwadb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62b.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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" 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=1665574040; 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=usASkWkHZVsNmUiPICQhLwc9GUkiGzfUpmfJ6ksoQqc=; b=T2j9gxYhfJSiSe2mWghUY/spSmdAWHvCy3AfFtAQzbx0IfCPWBZjw0wvp05qO9H7mxkgl8 7WU2hqA/8Od00vTSMAvr2aP7mkbvIh18qVquFd1xDm3TXW+VhPSuI4ELdsvJkdzoYadGvY PrN0qK2DZogyPji1eikRDzbhJc3M/JZwr8rT51PpdqnTomYDwySVoYipBIUXkd7MWsKxN0 vlQxtClccUj/hPSfBIThDdtHBwKyfj9QVgw8xqb7sb/d8dcmOaDqOjxSrmToW5xGjWxTep lOKEPOxQQdlbzi3Rs9RtFHOzndlM2J2Bpi2PYm2w3/UbXKaL2W+e/ewS1/kUqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665574040; a=rsa-sha256; cv=none; b=mr2O8E7qW9K4180t5SYou3WER5dQuj2tiDYReZXTe+RCZvOgwwFcfgyozePHpcZP+MrVKI 1Kth0eZQaHzGnLP8/5odrfNE4fbEbzWEOw1FUOIRwJxAM9mH18V+ZtmehmFOvbMKdPYR9n WkSEXvutljGreYaaLlndfuTr9e55JRTYysdPYPE+aSARwZR9RBj9CNKD5nWTcb3tFuBBlB ykKjl02eFDkzm3ZoN6FQRW1Daj+6rnhZJaC93K883v7sqLDg/z8Ma3220/Xqz3REkRZkza RAtD6r0kYEQYFRcqLPIjypVdomm8UCl89RiG0Z8N/IGAFk0qRHue53OSArdR4g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LHb1vsfk; 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: -4.40 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LHb1vsfk; 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: EA639106AE X-Spam-Score: -4.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1uu2o61uJ57J Angel de Vicente writes: > I copied your code from > https://github.com/yantar92/emacs-config/blob/master/config.org#properties > into my .emacs and eval-ed it. > ... > But the "test" still shows in the TODO list. Am I missing something > basic here? Not really. I just use a different system for skip functions. Try the following adjusted version: (defun org-agenda-skip-before-SHOWFROMDATE-property () "Skip agenda item if :SHOWFROMDATE: property is set and the day is before 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))))) (Note that the code requires ts library installed). -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at