all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Brent Westbrook <bwestbr2@go.olemiss.edu>
Cc: 59899@debbugs.gnu.org
Subject: bug#59899: 30.0.50; Failing to match org-agenda properties
Date: Thu, 08 Dec 2022 13:00:03 +0200	[thread overview]
Message-ID: <83k0322ma4.fsf@gnu.org> (raw)
In-Reply-To: <87v8mmk04b.fsf@go.olemiss.edu> (message from Brent Westbrook on Wed, 07 Dec 2022 22:35:54 -0500)

> From: Brent Westbrook <bwestbr2@go.olemiss.edu>
> Date: Wed, 07 Dec 2022 22:35:54 -0500
> 
> 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>="<today>"
> or SCHEDULED="<today>", I get no results, but if I do
> SCHEDULED<="<today>" or SCHEDULED<"<today>", 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>=\"<today>\"+SCHEDULED<\"<tomorrow>\"|DEADLINE>=\"<today>\"+DEADLINE<\"<tomorrow>\""
> 
> 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>=\"<today>\"", as in the example above, fails to return any
> results. I've also tried SCHEDULED<"<tomorrow>" 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, but could you please report this to the Org list first?





  reply	other threads:[~2022-12-08 11:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-08  3:35 bug#59899: 30.0.50; Failing to match org-agenda properties Brent Westbrook
2022-12-08 11:00 ` Eli Zaretskii [this message]
2022-12-08 23:18   ` Kyle Meyer
2022-12-09  6:59     ` Eli Zaretskii
2022-12-08 11:33 ` Brent Westbrook

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83k0322ma4.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=59899@debbugs.gnu.org \
    --cc=bwestbr2@go.olemiss.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.