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 COZMC7M/rWQqUwEASxT56A (envelope-from ) for ; Tue, 11 Jul 2023 13:40:35 +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 6M3MCbM/rWTIpwAAG6o9tA (envelope-from ) for ; Tue, 11 Jul 2023 13:40:35 +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 D8F6D30E10 for ; Tue, 11 Jul 2023 13:40:34 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TeE+6A6u; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689075634; 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=krvVqa2HXIgRNqkHDFsPVIcYmefRV5SviTgKt4U+TWE=; b=ebI/u79uAbggKP0Lsj5jLGgDYEe8wC6Kz8ed1/zO6RH8eI7QN+VAGZlxUTR8/WAIrv4oh1 nb8jCxzf/nVPaHGJd0XKGeA5Toq36ToMhs5ovsxzrHKv58BFdu7fTlhnLbjxsRN+6L/KK1 WITXvToJToATwMQwLX78fqvBE0ks+3bdzl/Adi6Tm026xJ5OgimNe7CzFOvnwjrLBL0EJO XAD0dOCqR0ABUB5LVQJrzwU0b7yYwNvfBKQrDhdoXhTCQ0zUK8WXmf0kxODR9Eleu4zy/w dhsAoWn/VoeLAbejypDYZAQcgojWaf8S6dPfFOM15udRWlSzGMPI0zVJMec/Cw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TeE+6A6u; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689075634; a=rsa-sha256; cv=none; b=UgwYAU92RMJ/QEr5JLOj6IVueb25VRkY1/qCf6dwJU+Wtbcq/UKXoAt0koIgqHKP76P32U eBD8Ekb20cAMPWd3wiuLRAk5Xu+RWmxNFrtkuc8wcP2M9/yieEW0J9YjzcJJVhCbDLa7LX ib9Al6jpsiWtHAPvCCUHKCDKoTaGw8S4uhc1jezGpWiooViuaRBcsjVgPcC775pq93znZq X+f2DMhprmALZfTXImka0H225vu6VoqRVorwYBUYDC1Nebg5A4IEgGj8uFz1USesKWkyA0 21F0iTVW3DXQHbW6DhFhXRxr/ibKTuf4/NGvua1srbvwXXB9xIeFPOmnGqL61w== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJBiY-00082T-DC; Tue, 11 Jul 2023 07:39:44 -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 1qJBiU-00080j-7D for emacs-orgmode@gnu.org; Tue, 11 Jul 2023 07:39:38 -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 1qJBiQ-0000x7-Ka for emacs-orgmode@gnu.org; Tue, 11 Jul 2023 07:39:37 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 28094240027 for ; Tue, 11 Jul 2023 13:39:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1689075571; bh=U5/HKLn8Jp252W5q8/BZIX2zGVRCG/te4p994UA+5MQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=TeE+6A6uli7r+8icDS2XMzdr5tcspxz1fUolbiI9tg1X0ry9KSBbzUa1J7mQrp5AS c79UaT/cW5aHcjIA72Ty0SSphBklHlWg5TNAU41DSSg3qvd0rN13DPVic5NezrohEz Fga3EP0dShDFU4r5LF9LaZrVXjhzlqfKhlZ950hNhzGJjdnCOkECHAsbiUvk311Kuw Lmostplb5MUCiXbcr9Ka56NmDpcsiu7yo9jtbAhNyzJWt6vtSO+D4+5sh4WHlJLr9q dSs9vpltgaayqJmH9OqpXjnqwQAcRr0NddemfpqYDxyP/3fCqnWhmWEuKY2xD+DznP 5wfEkFmVw78OA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R0f6V2jhHz6twg; Tue, 11 Jul 2023 13:39:30 +0200 (CEST) From: Ihor Radchenko To: Fabian Kurmann Cc: emacs-orgmode@gnu.org, public@protesilaos.com Subject: Re: Fwd: [BUG] Sparse tree does not work on properties with dashes In-Reply-To: <2f289eb5-8a1b-035a-b127-254ff60058db@uni-duesseldorf.de> References: <87v8etfaw3.fsf@protesilaos.com> <2f289eb5-8a1b-035a-b127-254ff60058db@uni-duesseldorf.de> Date: Tue, 11 Jul 2023 11:39:38 +0000 Message-ID: <87jzv67k3p.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: -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-Queue-Id: D8F6D30E10 X-Migadu-Spam-Score: -8.38 X-Migadu-Scanner: mx2.migadu.com X-Spam-Score: -8.38 X-TUID: 6tnGZFVJ8abw Fabian Kurmann writes: > I can reproduce it with the sample in the annex, following the steps > below: > > - Start Emacs with 'emacs -Q' > - Open a new Org file > - Add the contents of the Annex > - Type 'C-c /' and then 'p' for property. > - Select "TEST-HELLO" > - Select any of the two values > > Expected behaviour: produce a sparse tree. > > Actual result: no sparse tree. Thanks for reporting! Confirmed. This is because `org-sparse-tree' will produce the following matcher: TEST-HELLO="one" Which is interpreted as: Has tag "TEST" and does not have property "HELLO" set to "one". AFAIK, there is currently no mechanism to escape "-" in matcher string. `org-make-tags-matcher' assumes that property name can only contain alphanumeric charters and underscore. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at