From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kFPxAr/7yWRhFQAASxT56A (envelope-from ) for ; Wed, 02 Aug 2023 08:46:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4CEFA7/7yWTV1QAA9RJhRA (envelope-from ) for ; Wed, 02 Aug 2023 08:46:23 +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 B477E614C9 for ; Wed, 2 Aug 2023 08:46:22 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EjI1i5Ad; 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=1690958782; 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=ro4ImYmBEOySyItwl4BpRcR9s6UPeFL+bViJLF3Cw1s=; b=pLdpjBEikeiU9WInt3TKKIZx4Xr4iDQq0/7vriT/KVKYW38IC4q9v+gbagAO97Ne26IUaX 9rZLrk5Typ7clk7whigaC6l0ZDxv7BYMQ/UPvXxlb1SE92M/LZTfHvblM7wGh3K8T53sP3 kZh+pmdLjL9C5Zx0QAJRHjdcIJH1LdMO7dQTMoNt5N0ex12fXlCaZ0IZc+kjaIxQqgSsFI nIwd7kROtwMWZxyftqLS3UO5pR6THHgZV49GumBfrrOE4ol0MF7uaYk9CNAFQvuQsE9pCJ VzBhJfaf7HgnXH2UAqBZwbRdk/UK5ShIQPRxpwTKipXFjLi91Arn3VVL6hq62Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690958782; a=rsa-sha256; cv=none; b=eF/gj2aMvCOkPwNqqDifCJCp5VOre5iZOff3t7G5OoSzfh3RKKUA+expJnKJOwbLdFHh+S kEl3HoyA9NyDaq7Gh84/g9WuwA6c54OcyA8AL89w0viE0jyEwGJZ7/2P0RVFfpfwwPAIOt G65o+UDn06QgAECDslIEm1nI/HLEqFKurLE79m4TKabZ27p9U6IdO5mPFOgOdjSmzUmOWp jLW9AMmQjYqAdxDqUccbF9T5+KbVuQqW2MDbiJZq9RXrVDwP2lzeahLspTnWkEVU7VvmLs 76A8ja8yZ+ODweflVXx6jILDIKQ6TahLy1UfCzDftp4TaFo4wFLxzYyKTniwFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EjI1i5Ad; 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 1qR5cA-0001I6-S6; Wed, 02 Aug 2023 02:45:46 -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 1qR5c8-0001Hw-Vf for emacs-orgmode@gnu.org; Wed, 02 Aug 2023 02:45:45 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qR5c1-0002gB-Bz for emacs-orgmode@gnu.org; Wed, 02 Aug 2023 02:45:42 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 785FB240101 for ; Wed, 2 Aug 2023 08:45:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1690958733; bh=GEioLg+aGzyPKkZeWEBv/AWirzIjK4yJlTzRZSB5EZ8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=EjI1i5AdagqsN/uma5z51zeWFhlVTqqgnAOIKjojU8Cc6kZSabOwRiBeEquMDJM0R 4CUlqa4dYoS/+HSZiuTjMgMgxz6s3CQvotVkZZhgBmy3s3iRdnSxF2d+CcYmEUDUJv VYFeMiJahudXkJiSSCALkNIvbqfgBbPYrB+cw3t6ufNRkQlNUsOHfi9suLSaWk3/3r ez0HXwLGMoG0Ij9Uim5FQ8PhL6rUxG9IV0AjkyEZ7Gcw5+PsXGcvQSS3l8vSFpyjuI A+Rr7nWRCJuUmmeJubdcjeE3ka2crg7j6JuxfQDZhc558rWqX1g//z/wilc39+DS3o 0O3lqWHBuPpog== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RG2Y868bCz9rxD; Wed, 2 Aug 2023 08:45:32 +0200 (CEST) From: Ihor Radchenko To: Jens Schmidt Cc: Org-mode Subject: Re: org-agenda queries for absent properties In-Reply-To: <3ac83971-2805-cfde-28a3-891814b95c25@vodafonemail.de> References: <9132e58f-d89e-f7df-bbe4-43d53a2367d2@vodafonemail.de> <87o7jsinoo.fsf@localhost> <3ac83971-2805-cfde-28a3-891814b95c25@vodafonemail.de> Date: Wed, 02 Aug 2023 06:45:48 +0000 Message-ID: <87wmyendr7.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.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=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Spam-Score: -7.04 X-Spam-Score: -7.04 X-Migadu-Queue-Id: B477E614C9 X-Migadu-Scanner: mx0.migadu.com X-TUID: FsJfLdYCeVhR Jens Schmidt writes: > 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. There are some tests in testing/lisp/test-org.el:test-org/map-entries If we add new feature, we should better add test coverage for it as well. Should not be hard. > Finally, the first step probably would be to make that humongous regexp > in `org-make-tags-matcher' a bit more readable. Agree. > ... 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) > ... `rx' would be great. But even adding comments like in your example would be an improvement. > > 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. Similar does not mean the same :) I am thinking about something like https://github.com/alphapapa/org-ql#non-sexp-query-syntax For example, org-ql has (src :lang "elisp" :regexps ("defun")) and src:defun,lang=elisp We may as well allow >,<,... in addition to =. I had this in mind for a wile, but I am still hoping that we can eventually (when it is added to Emacs) rely upon peg.el for parsing. https://yhetil.org/emacs-devel/875yvtbbn3.fsf@ericabrahamsen.net/ -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at