From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8M0JENtYx2QVGQAASxT56A (envelope-from ) for ; Mon, 31 Jul 2023 08:46:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SLT9D9tYx2SYRwAAauVa8A (envelope-from ) for ; Mon, 31 Jul 2023 08:46:51 +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 D464843411 for ; Mon, 31 Jul 2023 08:46:50 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="oyu1fl/D"; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690786011; 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=14kxEtZZMslRqg9LSdJAI1t8aAL1urE+NpFGAuaZhIk=; b=jqW1DzsipPkFYloQLo6dPFLkXhBV/Y/a49ZSK1LI7Gs1xeLsdPwmj4USku0gCmIZcKaVEI W38AqpXxb7JaR9kHdNc8HQ2E7bBGyAOnjQ9JZ2W6BzV+mp5fKxoPCe/H4J1g4C9WpvWer5 x7kiyqAA90VakZ8bMkNS/003VlGs1i1iYE4ysDNq1VhFW3I4ysyuSAX3xgy/lwRzmXQqc9 cya13/KXSZ5TBDf9EhByPKzOaui2j/9KJ5KsKkle9FAc99MjU77n2blqzyjY7A8hUp8xPm gAfNpHsV2H5W+PQGCqnXVrxG8fkn32DqR5CwwN7jEsze5NCM08VXJqTp/P9zvw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690786011; a=rsa-sha256; cv=none; b=jB690R3FZt8QDbsK/ApGi94DFX5L+7tYfTmUoI8Wh37QPAyPKG5EeZ6mD8Co1ImU/gIPWS K99HXsjMmEt40E1lJmCuy2i+Pig/9ozvrmyN07UNiMe3Rynmn/JLrPv9I3BUBkG/U3zhpm ET3Y99JJEFNxniTwyIvWtbybxNOUxNhp26bJRAwv4N04aUqfwQGeynMtmgkzbIC37qpJi2 L7tNi20jSJ7t4eFX9OfF6Eg6LOAYXiWKEfur2fHwHAPvCP3/eZU+ppejHPxs3iAqtImVQq HcWqxdO8zBVA9GYjmhFJgXP7CWM0TgrKbF4n1aed5r0OmUToGXPihpnLe9tVTg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="oyu1fl/D"; 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"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQMeu-00044F-1Y; Mon, 31 Jul 2023 02:45:36 -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 1qQMer-00043B-ID for emacs-orgmode@gnu.org; Mon, 31 Jul 2023 02:45:33 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQMep-0007Hk-37 for emacs-orgmode@gnu.org; Mon, 31 Jul 2023 02:45:33 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6F8C1240027 for ; Mon, 31 Jul 2023 08:45:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1690785928; bh=ykotQXvNehxqeHJKHLkJP1BjHD0qs5+WmRCjGN0jels=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=oyu1fl/DxpnstzDQbBiXqB695LgvUxqVceQezD5MWKIpDoyyXFZXwy1plsDS9jL9S dn754fpOEFLcU6tac01S08x6dCteHwEWAYVkvdS4OlKfIG5dlF8g/VnbZpaS0bEcSC HBIFuzhdLTloszpIomLHX7arGVYHgk8OPE3EXsJmFdt9e8EMNakOiqqJdXbgWwuxvV c02YlvrLxwr6F027fQyClxsJVVM0NNoPR/XYuApJ/67pPlTrxpfjKvAs5EjKGFTOtN lhcHxx6mwlks2st58lHxPqyIwXkogdziGbotMR9bufCFP0As1woAwP8vpdLdfvOmMr 8tBtx310oaApw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RDpdz2WKQz9sJQ; Mon, 31 Jul 2023 08:45:27 +0200 (CEST) From: Ihor Radchenko To: Jens Schmidt Cc: Org-mode Subject: Re: org-agenda queries for absent properties In-Reply-To: <9132e58f-d89e-f7df-bbe4-43d53a2367d2@vodafonemail.de> References: <9132e58f-d89e-f7df-bbe4-43d53a2367d2@vodafonemail.de> Date: Mon, 31 Jul 2023 06:45:43 +0000 Message-ID: <87o7jsinoo.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.36 X-Spam-Score: -6.36 X-Migadu-Queue-Id: D464843411 X-Migadu-Scanner: mx1.migadu.com X-TUID: /rp5X33GES9W Jens Schmidt writes: > The following was initially meant as bug report until I understood that > it's actually some sort of feature ... > > since the absent property "patchday" on the "relax" todo entry is > defaulted to value zero, obviously. This is a side effect of handling comparison operators in tag matcher. The property value is processed as (string-to-number (or value "")). And since (string-to-number "") => 0, you get what you get. This code is out there since the beginning of git history. > So I would like to have something easier to type (and remember! why not > "!=" or "/="?) then Not "!=" and "/=" is because parsing of match string is too dumb. See `org-make-tags-matcher'. > patchday<>0&patchday<=202305 > > How about starred agenda property operators that match only if the > operand property is actually present, which would result in this query: > > patchday<=*202305 > > Section does not seem to provide > any information on "definedness" expressions for properties. If you are up to a job of adding this to `org-make-tags-matcher' and not breaking things, you can try. But we should really provide more readable match syntax, similar to org-ql; sooner or later. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at