From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 oHRJM5+oi2NIOAEAbAwnHQ (envelope-from ) for ; Sat, 03 Dec 2022 20:50:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OIA8M5+oi2NpcQEAauVa8A (envelope-from ) for ; Sat, 03 Dec 2022 20:50:55 +0100 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 BEC5915B5A for ; Sat, 3 Dec 2022 20:50:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1YWL-0000Zf-NK; Sat, 03 Dec 2022 14:49:57 -0500 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 1p1YWE-0000ZT-7w for emacs-orgmode@gnu.org; Sat, 03 Dec 2022 14:49:50 -0500 Received: from out2.migadu.com ([188.165.223.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1YWB-0008CM-BJ for emacs-orgmode@gnu.org; Sat, 03 Dec 2022 14:49:49 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1670096982; h=from:from: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; bh=a2yy95S+fnlJthF5MRkLY7fI+6QNJz6FqJdCy+BlKGI=; b=r5Nkb+yWLyvJ6E5AL9Og3gkCcoj6MW6LgAypoFg0U4cVpOykcZtMoX/SAByLXMtZyFd3w9 bfCGVWCTYHn1jWhO4v1QSOD5aVvODAFQszCUAp8wpmnWIRcNsW+cr17eejMua954/5jYls KxboDvo4LVB5eMwZfMzE42iCk4ZnWO/0F3RjJiglCU1sq4avANntvpXfn9fBlZNI+diQUn 3rpp/9/qMJQ3W9BNs1A5MOeeLAk9mj0XZxLVLa3MgfqhkcqXduIcc26qSu8P5W5+LU5kak r3EE+Im5v2v0FIfQbSGhooG2sgQ2ez7OxkY5UDsje92VotMPRQ1xtIAIMaLiVA== From: Kyle Meyer To: Carlo Tambuatco Cc: Org-Mode Mailing List , Ihor Radchenko Subject: Re: [BUG] Org 9.6 Inactive timestamp search no longer works as expected. In-Reply-To: References: Date: Sat, 03 Dec 2022 14:49:40 -0500 Message-ID: <87bkokgtd7.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=188.165.223.204; envelope-from=kyle@kyleam.com; helo=out2.migadu.com 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, SPF_HELO_PASS=-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-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=1670097054; 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=a2yy95S+fnlJthF5MRkLY7fI+6QNJz6FqJdCy+BlKGI=; b=N6yQVTvDWt6NSr0tA1B3MvItNfyzxGJKONDBEoEhhkHCyLcTaZldyVJkqywA8k8BWaMBDf nd+ZcgB0YskuKJaXJcf8D3DkeIq3dDhxE39c+cmKOAIkAyJXfVF4ObKiqMPWbEA6Z7UjAP BayF85bbk92UybpyB9XQzOSM3F96krMH8viKpkNpw7jRHPFvgIhzOLY5RKLeCN3r1IkSeY SuKyNfQlVcC0ut4aBfDvUJlYwwGCX+nPdZk5EdgFHU0doYHMtkpx2AXK2rSpkJ8QNMTmvb tQsP82Wf8nBiqV/GjztHDHdMtgulwgRtSRrhDvONAgjvD1WZmUezuydAFRBSHw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670097054; a=rsa-sha256; cv=none; b=uXiAyhpo5K8Q5lrXPK8NymgdCqJpdJ2ZsoL8AlAbTZIaObySZCSXek1Tfm5i9C8FUxMOSK V9yvpaN88Cg7VJshMASS7KDa6x9HHTpe2636I9EK+7XdX1Yly/2/a5dILYEHcOnbSGJIAh fYBwzek3cqKRf6fMJFvKwglr0ZT4yC1sW1vwwI4KMtkc5xZq0QgsY5dDID0JGhAWL+TP/z GCUg1Cuc14kvcTORdgnKfBtA54dbPytRgLuxWF6FjT+Qk+75ebNzjJ321WLfApkUGV/Tfk +MTS4wqaBJeVcR5woj+ZemC9OB3Cvj97SD6wGryVr/ycfwDOXEjtBT+Jik1EOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=r5Nkb+yW; 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: -4.96 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=r5Nkb+yW; 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: BEC5915B5A X-Spam-Score: -4.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: d/3ySOzliwcw On 12/03/22 13:44:33 -0500, Carlo Tambuatco wrote: > Simple inactive timestamp search for recent completed tasks used to retur= n as expected. ie: > > +TIMESTAMP_IA>=3D=E2=80=9C=E2=80=9D+TIMESTAMP_IA<=E2=80=9C=E2=80=9D=20 > > would return all tasks that I completed today. (Had an inactive timestamp= greater than or equal=20 > to 12:00 am of the current day, but less than tomorrow) > [...] Thanks for reporting. I had noticed one of my "" queries had stopped working but hadn't yet got around to bisecting. Doing so now, this looks like a regression from e022a0cea (org-make-tags-matcher: Do not treat PROPERTY=3D"[X]" as timestamp match, 2022-10-25). Ihor, I haven't reviewed the linked discussion in that commit, but with its change (shown below), the regex now longer matches things like "" and "". diff --git a/lisp/org.el b/lisp/org.el index e93a81210..01e0279c8 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11337,7 +11337,7 @@ (defun org-make-tags-matcher (match &optional only-= local-tags) (pv (match-string 7 term)) (regexp (eq (string-to-char pv) ?{)) (strp (eq (string-to-char pv) ?\")) - (timep (string-match-p "^\"[[<].*[]>]\"$" pv)) + (timep (string-match-p "^\"[[<][0-9]+.*[]>]\"$" pv)) (po (org-op-to-function (match-string 6 term) (if timep 'time strp)))) (setq pv (if (or regexp strp) (substring pv 1 -1) pv))