From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4OEgDtZGqWVGgAAAqHPOHw:P1 (envelope-from ) for ; Thu, 18 Jan 2024 16:42:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4OEgDtZGqWVGgAAAqHPOHw (envelope-from ) for ; Thu, 18 Jan 2024 16:42:14 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TtsmJlzg; 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=1705592534; 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=+znDCELBVrj7vLr589BxAWdmGumRkXNDaPx3UdyixqI=; b=EYd3KfQ4HrWbJbb0jQxCgvPZhWxUB0XEyAdXcWJXq4yoozBf6bMm5zDzHdQNUpfh/pK/Km F5Ze/wQFjxdFgiMWVgaurMCNzY55O3V+Bzj+sAp3glqlX/2YmhZwyBWR5/i2EmSim/3AwX 5cFb0Xa78tMCkXthH8NJl56fASZirdrYHuLd0OQV2Ub3BSh8TAJReQzZ4TBlU5my1Hedkf KmAht/lllzSiJMBFzDnSO+TqJ1YVO0uxpIrqrwiah4CD37g2nkk0p9edzEqDw6JkOPkhtS DUOk4Qhw/PDFbcpjOucZkwCeBaOTE79wGWAX08od5+kCS/EgzkfYrpbCvP3SDQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705592534; a=rsa-sha256; cv=none; b=exNSHPUgEjeNLt9GwAGCIwlw2m0ESGSCRWFhZBw6BhLKjNNOcJ+PJHtVfP4WdRJq9P268m +vgkDWFWn20YVyjiFLAKJS+wCMHegY4m3pwEw6dZ4sCo3XK31f/ERTX5k7Pcrfjj3GBb09 na1jBRmRwJI9lu8FXjmZFRw7Mm2oz3tejD0NC0+K1OcBeKU6rGH39trYfyNLcKA7nmGH90 PoHW5XuKhpg39CWzkGg4LE3asJy4R61p387bd7Uc4yFY7vUm8M/Wv1UPtf6GXpfBQ7fD7F zHLKvEc4dtfY7g6hHc8tC1/Eo7BNILNQvZdIjSq8n6dhZmVgDFP34uKjxENbCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TtsmJlzg; 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" 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 21EA9683DB for ; Thu, 18 Jan 2024 16:42:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQUWY-0006Dl-IJ; Thu, 18 Jan 2024 10:41:46 -0500 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 1rQUWW-0006Cv-MC for emacs-orgmode@gnu.org; Thu, 18 Jan 2024 10:41:44 -0500 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 1rQUWU-0006fA-Ch for emacs-orgmode@gnu.org; Thu, 18 Jan 2024 10:41:44 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BFAAB240104 for ; Thu, 18 Jan 2024 16:41:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1705592499; bh=4mVxvie7/U8qljyClc16xCsYGap9JKCdWr5PX0by2l0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=TtsmJlzgChYOt3EHkiFCLpVLQDIkw8RGr3xcdWaqYNBHacDLuMg7Lbt1sY290kto8 aeV9aHn8tdJYlSn2zpXhxUsbLo2oZU1O9BDK2/sOZydzMUWv2iWR9FObaCMNbMkScJ SeQnRfmvSj/o/+2K6OR4Nuk3PA/A6mIccdm+eLhJuuAfPfoDK+1voWOi5+RopMRzoH vTiHv/gYzFUYoUa5hg/bRaMZfU9rX+Cr3vK9SZZcwhaUAAgjzvHDo2K7+Qmnko/Bqu haL9/2Ub23GxZvyzrHkf5pfjVBYoNqRk40dKqPlmkvdtTHtg2ldmJxEj2vUucqGIx3 lQvWjfTbJmJDg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TG6Rk508yz9rxQ; Thu, 18 Jan 2024 16:41:38 +0100 (CET) From: Ihor Radchenko To: Fabian Kurmann , Jens Schmidt Cc: emacs-orgmode@gnu.org, public@protesilaos.com Subject: Re: Fwd: [BUG] Sparse tree does not work on properties with dashes In-Reply-To: <87jzv67k3p.fsf@localhost> References: <87v8etfaw3.fsf@protesilaos.com> <2f289eb5-8a1b-035a-b127-254ff60058db@uni-duesseldorf.de> <87jzv67k3p.fsf@localhost> Date: Thu, 18 Jan 2024 15:44:53 +0000 Message-ID: <87v87qprwq.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-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.97 X-Spam-Score: -6.97 X-Migadu-Queue-Id: 21EA9683DB X-TUID: usdLP5N/1e4I Ihor Radchenko writes: >> 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". `org-make-tags-matcher' is now supposed to handle \-escaped dashes in properties. However, it does not seem to work: (org-make-tags-matcher "TEST\-HELLO=\"one\"" t) yields (progn (setq org-cached-props nil) (or (and (not (string= (or (org-cached-entry-get nil \"HELLO\") \"\") \"one\")) (member \"TEST\" tags-list)))) Jens, do you have any ideas? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at