From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 sBN4KBsw9GRJKQAA9RJhRA:P1 (envelope-from ) for ; Sun, 03 Sep 2023 09:04:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sBN4KBsw9GRJKQAA9RJhRA (envelope-from ) for ; Sun, 03 Sep 2023 09:04:59 +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 79A5F46DB0 for ; Sun, 3 Sep 2023 09:04:59 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IuBxff1v; 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=1693724699; 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=nq3uouuuyw5SKi4KptzcvVD0p8uK4Ykoi3pBTR8XFWo=; b=RiXjbTWndU+TmWg5SWc04dvcXMRNwje9NmCsKU524Yf1EOQ6tX7AbfsofWyMf5Zvni5ZzP KKeUsDGUWzL9yy4mxyVF3J7rbxmiTEIS12SO+uzU9a4y2LVt2daTmFVL0j9ugvTTxngllx SvYoRVBQ0ubN8xe/NjgyGquddGI2qWyFp3u9tbWlfDoc1MYTUgC1XWl5mxMlVfkiYw47Wm S0kv8ZcaO1nXHor5u/h1BXPc2OO9KIK4GUypddNPwobiUyFDz0N++Sivrd4X79Qy6CIMMr DuGgBAbjjNzbv6nMlKrbFtrUUFEC2LWMRuHrHO+97mDXtE53iLyGOAMysHUzVw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693724699; a=rsa-sha256; cv=none; b=fesP46wQhqjglTpaP7Sdrvn1ibD8Ac3Anm7w8H4gjanPu23pYI9qrt75W93Dus6AlYRyoP Uk6bA/hHj7NTEJVcQHuUQwGfsE0B+BH5YnP8u8WY8oDqCuVem0avfTwx5UwS02SQ1TTW2R M+7Pt+wLD3NOKT4x3xgsmahgMKvLH0vZkzNDCbGbd+VTzCa7Bo+X6cYhco/QEAeupCjdHZ CQRw6DyJL9EqV3XJ5NDkDxkm61z3FAVvbwTQ/76tsDkKU4vP8xaG6NHfyolDx7Mhp1AUfM fKSPa/pisaQMqNgZ7MUCSrJFWeEZr+2iv6ZCfVYmVyFq+Ndv/6e25XoUT2gU4g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IuBxff1v; 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 1qch9W-0008DJ-0W; Sun, 03 Sep 2023 03:04:10 -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 1qch9R-0008Co-GN for emacs-orgmode@gnu.org; Sun, 03 Sep 2023 03:04:06 -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 1qch9M-0003rD-A0 for emacs-orgmode@gnu.org; Sun, 03 Sep 2023 03:04:05 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E6D95240104 for ; Sun, 3 Sep 2023 09:03:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1693724637; bh=g7jUmtansQ4WflcdfMrGK6XDlq5bwrq+/2OpifWJvnY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=IuBxff1vmw+Pkt0sjtTAs4Zqs9U27WfjHpY6sb/Pmo5SN5ONkqGCjkxuFWPQ7PsUT 7RoCs0ZqYx3CI1PcojKWJE0Pg2h4H48QUKgC3Dr4aAZvN6xhxwNe7vhcW/zDZkScVj UKUNZIIXIoVwKALmwPNn1f9ievD0/KYe7S6c0qWYF81gmdMOwembh2AEdOfs3gYly4 ibae5kuWD0dmIa6meQ1EDUS2859VaVqvjLqH5wQcPa+zqhSConeeNQ5CiCuiDJ8iU5 71emxemPpsXlrRhoIgt31l5o3tJAylnXwHAZnOHxhvVmWG5i/dX64PZWtVFUQo2hdS iO1kH51i31BHw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RdjRX0x9lz6tvZ; Sun, 3 Sep 2023 09:03:51 +0200 (CEST) From: Ihor Radchenko To: Jens Schmidt Cc: Samuel Loury , emacs-orgmode@gnu.org Subject: Re: Redoing the current tag/property parser in a real grammar [was: Re: [RFC] Quoting property names in tag/property matches] In-Reply-To: References: <87h6oq2nu1.fsf@gmail.com> <877cpm6oe3.fsf@localhost> <811c9bda-cea4-c0d6-30b4-53ebdb432ab6@vodafonemail.de> <748acab1-eaf4-fdd3-13a6-26e6229de613@vodafonemail.de> <87o7iw7v4q.fsf@localhost> <98f4101b-7281-2793-ca30-7086c4f10c5d@vodafonemail.de> <87sf86w1k8.fsf@localhost> <6a7888b5-1b4c-9a59-8a8e-e27c9d8b50cb@vodafonemail.de> <87h6omj9nx.fsf@localhost> <87edjqj8mk.fsf@localhost> <878r9xez7m.fsf@gmail.com> <874jklhqw2.fsf@localhost> <2937cbf6-4ee7-0bdc-b585-d74c9d80883b@vodafonemail.de> <87bkelhwyz.fsf@localhost> Date: Sun, 03 Sep 2023 07:04:35 +0000 Message-ID: <87h6obohz0.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 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-Scanner: mx2.migadu.com X-Spam-Score: -6.43 X-Migadu-Queue-Id: 79A5F46DB0 X-Migadu-Spam-Score: -6.43 X-TUID: hMMMODQ3eMTK Jens Schmidt writes: >> Backward compatibility will be easy - just leave the current code when >> old query version is detected. We should better focus on the new syntax >> in future and leave the current syntax as compatibility layer that will >> be eventually deprecated. > > Agreed except for the deprecation part. I think Org should be big enough > to have two parsers: One along the lines of the current one (infix, DWIM, > easy to type) and one along the lines of org-ql (sexp, better extensible, > more flexible, harder to type). Ideally, it should be even possible to > embed the infix-one into the sexp-one. Maybe. The rough idea is to allow pluggable query syntax, so that people can implement they own, if they wish to. > It should also be possible to put the current infix parser onto a more > stable ground as well, based on a formal grammar, providing at least > parentheses for grouping and negation, and that without breaking backward > compatibility. > > Let's rephrase that way: If I were to redo the current parser as > mentioned in the previous paragraph, would these changes "eventually be > deprecated"? (Which doesn't necessarily mean that I promise to do so, > of course.) I am not sure if we need to hold to the current syntax. I am leaning towards something more similar to notmuch/"export" web search queries. In any case, deprecation is years away, and we will have plenty of time discussing the specifics. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at