From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WIynI1FUyWR0KgEASxT56A (envelope-from ) for ; Tue, 01 Aug 2023 20:52:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gJGyIlFUyWQFVAEAG6o9tA (envelope-from ) for ; Tue, 01 Aug 2023 20:52:01 +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 889B74B5A4 for ; Tue, 1 Aug 2023 20:52:00 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=vodafonemail.de header.s=vfde-mb-mr2-21dec header.b=L+K7XrTp; 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=quarantine) header.from=vodafonemail.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690915920; 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=owLHQl5M3/41rnmyyTC8m5EJubVN1XQnO1k06T47QfM=; b=HBZc28sLLJJgal+mhPaj9HRTx9BbbdOpClKhJaGCyFEeW76C9FNLqVhkeH4arAQQ9vpIy0 pEZBFA3KGxXZg0ignEVRFB5hsZNT2ntnjUvmgtayybppPu4iyFKqtGDILPX8wpQ8XIbdrC sZ/QnMSSwRN/0UeYOHvNrJ2guvdqrh9JMVbFHAc+9V6ZQLz5HqlF3X+TYqZ95ZBYfk3ejJ GeiGur/W4FZt/lGZT0pqiYRnflwe2FOxHuXKnlAbe95pgdnCsi+NrE+Hcy4tRDa3c94+Jb UaIp7QM4LOXEKK10/2O8GrnIPRQdods0SoeQy9KRedh8ENnkz/ASgDc2/O6o3g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=vodafonemail.de header.s=vfde-mb-mr2-21dec header.b=L+K7XrTp; 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=quarantine) header.from=vodafonemail.de ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690915920; a=rsa-sha256; cv=none; b=KMCmp/bCjqwuydhtF9gyuVbGxyMQ7pudJtOtx6Ie2UXUVjhNoN5M3N3HhecMIvsi9qeady UJKsi6ePUVOgvg0gFW9i6NT5p8/BNb4ibFGsiVPrxCxSnrCZ6X/aH06QXLphVHSYeJi3dn JCUwVBsUBtNwjGra2ldc5EQu54vHNgM3bxGvBokA7U3sHVPWS7f1yMIvAHNYlVZKuSWPzp nsoot6RqaXhIW7Pa8BPc+ELb1xhNSKnyVWFqN0DfNxD4EyVPrmwO0CoojbfdJAkbyKommj YQOOfcVBW2dwHGtguQZhVZz0rFtiE3PsV0cyrt1Qe+ME1sr0vrnB2imgDg404Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQuSi-0000oS-9y; Tue, 01 Aug 2023 14:51:16 -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 1qQuSh-0000oJ-5n for emacs-orgmode@gnu.org; Tue, 01 Aug 2023 14:51:15 -0400 Received: from mr6.vodafonemail.de ([145.253.228.166]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQuSf-0006N2-5Q for emacs-orgmode@gnu.org; Tue, 01 Aug 2023 14:51:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1690915860; bh=owLHQl5M3/41rnmyyTC8m5EJubVN1XQnO1k06T47QfM=; h=Message-ID:Date:User-Agent:Subject:Content-Language:To:References: From:In-Reply-To:Content-Type:From; b=L+K7XrTpQz1V+v31fwU/jlYgUA+74iKirLwdjxCzHsxvA3BSAgzIr0QrCcPR6/pbV xX9CNyZriNvzEo+7Ae4ylASJnBxjaTYEe8MwJwGKxPtkMeKg020kB0tNKqu7hl2pjy nlxTspxkFsTzpLcQvyDpYwG/HqtPc5uYQzcNam1M= Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr6.vodafonemail.de (Postfix) with ESMTPS id 4RFkhh1q2dz1xqg; Tue, 1 Aug 2023 18:51:00 +0000 (UTC) Received: from [192.168.178.41] (port-92-194-202-145.dynamic.as20676.net [92.194.202.145]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4RFkhX69R9z9s3t; Tue, 1 Aug 2023 18:50:49 +0000 (UTC) Message-ID: <3ac83971-2805-cfde-28a3-891814b95c25@vodafonemail.de> Date: Tue, 1 Aug 2023 20:50:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: org-agenda queries for absent properties Content-Language: de-DE-frami, en-US To: Ihor Radchenko Cc: Org-mode References: <9132e58f-d89e-f7df-bbe4-43d53a2367d2@vodafonemail.de> <87o7jsinoo.fsf@localhost> From: Jens Schmidt In-Reply-To: <87o7jsinoo.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-purgate-type: clean X-purgate: clean X-purgate-size: 1871 X-purgate-ID: 155817::1690915856-70FBE86E-72040F25/0/0 Received-SPF: pass client-ip=145.253.228.166; envelope-from=jschmidt4gnu@vodafonemail.de; helo=mr6.vodafonemail.de X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 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, NICE_REPLY_A=-0.092, RCVD_IN_DNSWL_LOW=-0.7, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -9.55 X-Spam-Score: -9.55 X-Migadu-Queue-Id: 889B74B5A4 X-TUID: vXH1w6S3XKvv On 2023-07-31 08:45, Ihor Radchenko wrote: > If you are up to a job of adding this to `org-make-tags-matcher' and > not breaking things, you can try. Depends a bit on the required collateral changes: Updating ORG-NEWS and doc/org-guide.org should be no problem. Doing a naive grep-based search I haven't found tests on `org-tags-view' or `org-make-tags-matcher', so I hopefully wouldn't need to add anything new in that direction. Finally, the first step probably would be to make that humongous regexp in `org-make-tags-matcher' a bit more readable. What would you prefer? `rx' or sth long the following lines (not checked for equality yet): (re (concat ;; AND operator (OR is done by global splitting) "^&?" ;; 1: exclusion and inclusion (the latter being ;; implicit) "\\([-+:]\\)?" ;; 2: query expression "\\(" ;; regular expression matching tag "{[^}]+}\\|" ;; LEVEL special property match (3: op, 4: level ;; value) "LEVEL\\([<=>]\\{1,2\\}\\)\\([0-9]+\\)\\|" ;; property match "\\(?:" ;; 5: property name (with backslash escaping minus) "\\(\\(?:[[:alnum:]_]+\\(?:\\\\-\\)*\\)+\\)" ;; 6: property operator "\\([<>=]\\{1,2\\}\\)" ;; 7: property value/operand "\\(" ;; regular expression "{[^}]+}\\|" ;; string "\"[^\"]*\"\\|" ;; number "-?[.0-9]+\\(?:[eE][-+]?[0-9]+\\)?" "\\)" "\\)\\|" ;; tag match org-tag-re "\\)")) > But we should really provide more > readable match syntax, similar to org-ql; sooner or later. Agreed on that if the new syntax will allow for equally succinct queries. Plus a very cursory, doc-only review of org-ql hasn't revealed to me how I'd do numeric property comparisons with it.