From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brent Westbrook Newsgroups: gmane.emacs.bugs Subject: bug#59899: 30.0.50; Failing to match org-agenda properties Date: Wed, 07 Dec 2022 22:35:54 -0500 Message-ID: <87v8mmk04b.fsf@go.olemiss.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28931"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.11; emacs 30.0.50 To: 59899@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 08 10:51:19 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p3DYl-0007Mu-GJ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Dec 2022 10:51:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3DYZ-0007c9-5T; Thu, 08 Dec 2022 04:51:08 -0500 Original-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 1p3DYW-0007ay-27 for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 04:51:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3DYU-0002gK-Np for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 04:51:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p3DYU-0007zE-Ia for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 04:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Brent Westbrook Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Dec 2022 09:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59899 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167049305830671 (code B ref -1); Thu, 08 Dec 2022 09:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Dec 2022 09:50:58 +0000 Original-Received: from localhost ([127.0.0.1]:55665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3DYP-0007yY-6U for submit@debbugs.gnu.org; Thu, 08 Dec 2022 04:50:57 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:52092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p38Du-0000nU-W5 for submit@debbugs.gnu.org; Wed, 07 Dec 2022 23:09:28 -0500 Original-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 1p38Du-0006FY-6D for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 23:09:26 -0500 Original-Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p38Dr-00006g-1t for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 23:09:24 -0500 Original-Received: by mail-qv1-xf32.google.com with SMTP id q10so210599qvt.10 for ; Wed, 07 Dec 2022 20:09:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=go-olemiss-edu.20210112.gappssmtp.com; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=rlLfjEGaFLzTXHir+RH+FEYYKNQJEc6MmglRFk3XsyY=; b=dlJjlRk208zpyxf8LG1pWN+Y1iAZDcH0VNFoDNvzbNkxyhE4+yGQo86SBRpDQmzd5L Lnr2vZf9mFSxcqEI2iNZuevR0uvA4E158xe3X7EKubHX/Ny6UdiRP5Ro/zVrCDpJG9zu hbwF0n+WzELasHB/zFCW8qKvDj7diqaVhHcWRYA5U5tpmYd0oajdDKmPTTLrcgvO2v1Y 1J4h9DPvWyw42Ra/GtoBrBaj0RmhGVatjJ2/+sZUwb6LgZCgrmg1ocgCS+6aGyH3Ff6b pZ6P42fgBd1OHvYm8SyG9k3n9GDmAozbc8m3vtqYMzyFJrR69XiNEi1etWdtANI7SMQ9 REHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rlLfjEGaFLzTXHir+RH+FEYYKNQJEc6MmglRFk3XsyY=; b=t9E5HCTE7S9FbTPVVRMKEAHaiST4XbOSFARsU9dft49fdmUESAPqN79RHIO0pS2Rzo VWuGm1n3T7fD3b/8UYNkRCurWhqVCBpm6KIEo5m2500fF2PVDBkglRiNjOXBz6SvQi0S qq9bUmbyC7GzMcXUqDCD+w/Aa9yZXoHTyM0E0Y0rHU+rbXDHNUkE9uktkUTVKXMCdnL6 kTgUeSXxtxh1/U91tVH0EzuNcoD+Ro69SoYUDB0wAJ1sqEjKyxwI5gRS+Smr3XGsJxxG G1kVq5yYzpk1Dc5RsOD6GL4z5qUZrYVGIwJvA6dN8mEDNcz518LVM3y3qq18h9eSdbLR bZdg== X-Gm-Message-State: ANoB5pmlY8rG20fwjP0QkZVZ2KT0CzZ76W4f6oV3ayOSScA6gma0i+CN LM9tittUXM9u6RIIgzVUvN1guSDY3pDKHwk7 X-Google-Smtp-Source: AA0mqf5K3CsAAoDMPya3MVjhN0TLDAheW1ZSFjWaW+lFSDzHAZ1qlIxfdMolZUSckGXr2fdK4i+S6w== X-Received: by 2002:a05:6214:3b0e:b0:4b6:d277:324c with SMTP id nm14-20020a0562143b0e00b004b6d277324cmr1971199qvb.21.1670472561207; Wed, 07 Dec 2022 20:09:21 -0800 (PST) Original-Received: from keystone (pool-100-15-80-136.washdc.fios.verizon.net. [100.15.80.136]) by smtp.gmail.com with ESMTPSA id bs15-20020a05620a470f00b006fbdeecad51sm18296335qkb.48.2022.12.07.20.09.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 20:09:20 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::f32; envelope-from=bwestbr2@go.olemiss.edu; helo=mail-qv1-xf32.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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-Mailman-Approved-At: Thu, 08 Dec 2022 04:50:53 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:250257 Archived-At: In emacs -Q, with a simple org agenda file like: * TODO try out org mode SCHEDULED: <2022-12-07 Wed 23:00> in /tmp/test.org, setting (setq org-agenda-files '("/tmp/test.org")) and running M-x org-agenda m and typing the queries SCHEDULED>="" or SCHEDULED="", I get no results, but if I do SCHEDULED<="" or SCHEDULED<"", it does work. This is pretty minor in this example, but for potentially large agenda files, this could cause a lot of work. For example, in the org-alert package I help maintain, we use `org-map-entries` filtered with a MATCH argument like "SCHEDULED>=\"\"+SCHEDULED<\"\"|DEADLINE>=\"\"+DEADLINE<\"\"" to select only upcoming events. I noticed that I didn't get notifications for events on my agenda today, and this query now failing seems to be the root cause. Even simplifying it to the first part "SCHEDULED>=\"\"", as in the example above, fails to return any results. I've also tried SCHEDULED<"" alone as a query, but it yields scheduled items from today and tomorrow. I've checked this page (https://orgmode.org/manual/Matching-tags-and-properties.html) of the org manual and the breaking changes section of the 9.6 release notes but can't see what I'm doing wrong. I'd be happy to update my queries if that's the issue, but at least right now I think there might be a bug in this tag-matching code. I might poke around and try to submit a patch tomorrow if I can find anything. I just rebuilt my emacs from the master branch to make sure this hasn't been fixed in the past couple of days and am still able to reproduce it on commit 5d68cc99177569a661da0ac75bb7df1ec4098fda. I think it was working before I updated to the version with org 9.6, but I'm not entirely sure. Thanks, Brent Westbrook