From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 YAWaBbA55mRf1AAASxT56A (envelope-from ) for ; Wed, 23 Aug 2023 18:54:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AHm5BLA55mQaLwEAG6o9tA (envelope-from ) for ; Wed, 23 Aug 2023 18:54:08 +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 A0C9351BB4 for ; Wed, 23 Aug 2023 18:54:07 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=vodafonemail.de header.s=vfde-mb-mr2-21dec header.b="ey8J4/UN"; 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=1692809647; a=rsa-sha256; cv=none; b=CVVeQg7aBpr+KXS3zhahpd4mq5mqPM9rxBW3gU+jYFSj7YOY+HOb8269ij7x+8hkxD/YR5 p3yNuODMEdKCk26JqqskHNimdbCJZkxSjv8TEJsV5TyaJhlxK+vYk3awT49cQEQ0osr1bF i+n1gcU+UL1uC4NqT7NZrT5ZUpoDiyepNeyP3/cxcs3QaGvhMfNucO+1MTvwgjeJiMrNGr ZWmIiEiP2aTlt+naHQVtdgSgJNuJxY5AG9V9HkFBsXbpwM2fvDdjMmcCWcnpHwTcXZX8qO mk+6Ob02DQt+iDT7ANZ4pVLasO0F0lJw6DsKIZV591MqWwe7RFehjFuzuV8lzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=vodafonemail.de header.s=vfde-mb-mr2-21dec header.b="ey8J4/UN"; 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=1692809647; 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=QTFWt75X6F0n1NiBEYgbmPCrmmqQ1nmWIw6ZwA9iI1o=; b=ZvkDtCrNMxC1BSVlKpBw4eAhhm0GRWT8Q7uZXfepmomWwFA2JiKHUDHWQ9ZKT45W5ZaI8V N+AN0dJt+6xeOCYiYDpG/SbsQ0jTjoQa5irsdCu7gvoJMzjcZap28r9zhFmHPtCmUWk1Hv xAVGd6H7mBOgn7+74L2f5V2RWxrRIiYtfAYyK3M61QZd+gdK76XBdJOeerUpwLI5zXPmH0 HCZcmzb2YV19/QJRtq+KENBsvioH7NqWH1ar25GgWpixQ+18bfoCQUQSNrgoBOgDP6ToZr 1hT4cYthUqK65ahBskZpQA5MBnJPJDBCmnViH2pWOBQ9WJUKLmyMvgZtMQlyfg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYr3Z-0007hx-5Q; Wed, 23 Aug 2023 12:50:09 -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 1qYqD4-0003iX-RR for emacs-orgmode@gnu.org; Wed, 23 Aug 2023 11:55:54 -0400 Received: from mr5.vodafonemail.de ([145.253.228.165]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYqD2-0004K7-Cq for emacs-orgmode@gnu.org; Wed, 23 Aug 2023 11:55:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1692806149; bh=QTFWt75X6F0n1NiBEYgbmPCrmmqQ1nmWIw6ZwA9iI1o=; h=Message-ID:Date:User-Agent:From:Subject:To:References: Content-Language:In-Reply-To:Content-Type:From; b=ey8J4/UN+BwWurmvpGN0vW2irzEy+JD1RX0rPV+cWr2fKuMZXwZzu8DKaPff/QKk8 Fed7bEtjDUJnfpOMlxugPjxL9+mqzC6h0g6xLFEdpDdrWKA3AY8hAHyYAat7nxKP26 EC+6QCyBfM49/pxvXAdP+dv7yg7R/NRGaAZOedOc= 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 mr5.vodafonemail.de (Postfix) with ESMTPS id 4RW9mP3Kc1z1y4P; Wed, 23 Aug 2023 15:55:49 +0000 (UTC) Received: from [192.168.0.138] (unknown [86.33.74.50]) (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 4RW9mB1YXHzKm4D; Wed, 23 Aug 2023 15:55:35 +0000 (UTC) Message-ID: Date: Wed, 23 Aug 2023 17:55:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 From: Jens Schmidt Subject: Re: [RFC] Quoting property names in tag/property matches [Was: [BUG?] Matching tags: & operator no more implicit between tags and special property] To: Ihor Radchenko , Samuel Loury Cc: emacs-orgmode@gnu.org References: <87h6oq2nu1.fsf@gmail.com> <877cpm6oe3.fsf@localhost> <811c9bda-cea4-c0d6-30b4-53ebdb432ab6@vodafonemail.de> <748acab1-eaf4-fdd3-13a6-26e6229de613@vodafonemail.de> Content-Language: de-DE-frami, en-US In-Reply-To: <748acab1-eaf4-fdd3-13a6-26e6229de613@vodafonemail.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-purgate-type: clean X-purgate: clean X-purgate-size: 1057 X-purgate-ID: 155817::1692806145-F97FC58E-41C8DFAE/0/0 Received-SPF: pass client-ip=145.253.228.165; envelope-from=jschmidt4gnu@vodafonemail.de; helo=mr5.vodafonemail.de X-Spam_score_int: -54 X-Spam_score: -5.5 X-Spam_bar: ----- X-Spam_report: (-5.5 / 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=-2.684, RCVD_IN_DNSWL_LOW=-0.7, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Spam-Score: -6.00 X-Migadu-Queue-Id: A0C9351BB4 X-Migadu-Spam-Score: -6.00 X-TUID: r8otSykbez70 On 2023-08-23 16:00, Jens Schmidt wrote: > Given the property name syntax in > > https://orgmode.org/worg/org-syntax.html#Node_Properties > > the subre in `org-make-tags-matcher' to match property names > should then look similar to > > "\\(?5:[[:alnum:]_]+\\|:[^[:space:]]+?:\\)" > > , right (colons being stripped off later)? I'm really asking > about the trailing plus signs here, but these do not seem to > make sense in property queries. Yet another edge-case: In the Org syntax definition a property name is really delimited by a "colon-whitespace" sequence. This takes out the ambiguity whether a property name is defined non-greedily :[^[:space:]]+?: or greedily :[^[:space:]]+: I'm too lazy right now to think about the consequences, but I hope this makes a difference only for really weird property matches, like this: :foo:=1+:bar:=2 This would be parsed non-greedily as FOO == 1 && BAR == 2 or greedily as FOO:=1+:BAR == 2 I'd go for non-greedily defined property names.