From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4Nq9Num9V2MZCwAAbAwnHQ (envelope-from ) for ; Tue, 25 Oct 2022 12:43:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sBK2Num9V2M3UgAAauVa8A (envelope-from ) for ; Tue, 25 Oct 2022 12:43:53 +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 81CB623CCA for ; Tue, 25 Oct 2022 12:43:53 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onHLj-0004o1-Vd; Tue, 25 Oct 2022 06:39:59 -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 1onHLi-0004nU-CR for emacs-orgmode@gnu.org; Tue, 25 Oct 2022 06:39:58 -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 1onHLZ-0002ke-Dr for emacs-orgmode@gnu.org; Tue, 25 Oct 2022 06:39:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 98EC0240028 for ; Tue, 25 Oct 2022 12:39:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666694379; bh=bJRIFs5K1WIe2XCS/OJzGquO8lcZpANjp3PM/RZx4G4=; h=From:To:Cc:Subject:Date:From; b=bJI8oUMeXjIm5NixuF1kbw6Lhn43/fxZaXbuGAx4Iml3D5bdpw1gJRqZdLI7RlInz nv+0sZXlulJxqoewGARawbBUHwUwEyYUPdPOKCGg7F6soAzBe+UUMy65Jb1hMTtTnn boBCpthbVtVGlisJfohECk09r9vM85ws9HXSzJmPHVJhm9Zbalgjb7YAE+bBQN3Cni ulp6iOpOLBuP1KOsFHqGeCm61vngZOkagTK4AexMtAh2vgRvuU921THilq41SkYUvz tPwTzOlHHndbk9gxFEHgo0vUkybZ9FKNt1uT1BQevABpfeDz5cmW7/MMoCiwpKBj4t BsVm2nG86le+g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MxT2y2X93z6tmf; Tue, 25 Oct 2022 12:39:37 +0200 (CEST) From: Ihor Radchenko To: "Daniel J. Sinder" Cc: emacs-orgmode Subject: Re: Dynamic block match fails on checkbox columns In-Reply-To: References: Date: Tue, 25 Oct 2022 10:40:21 +0000 Message-ID: <87h6zsrxt6.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666694633; 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=qUVFL0QLSlROo8CNFdau2g98acIhf3Nmn5ERUfyCNm4=; b=PbCrR1CItJpNNOCt8W3WoVGo0G4oFnPwUoxPqydGgD678m96iVIdZmH/9V+tCo1XNyYfmv dM9JzsO0Fc6KClxwDHylB23jpGuVQbXNqA5jWqem1/XBojJ52UahBrn+6ltlO0yI6eASTj +yCM2gnK2oKDW2tsOczCtjBEgLjTgyatEowJnQ+h5LEYlJcxR8jrkc+bWZee6UWcOz/mTB oWiqGZJa0WDlMVJKIdvhm8pkehNt/Llf/R52lh06bbLfUYuxS2pwcxxQUmWJS5Dd1VXdoZ NJ6hAIgy/CdnXkpcKr861q2lp5xj2ldclqcKpXW9/HgkqjbfrDenxXDZr4fbLw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666694633; a=rsa-sha256; cv=none; b=q7d2kPVK3TL/fHgsMnz2eAiN0byhgQWWPEMzb+1gbTQJvdJrZpbWBEqfZNqT4RuTXJAHSy 084H+i9k1Pb23Jh72kb/E4pPd4T1DQgihaZd0FYd9s4XMEkFvlqAQzcMrO9S7AjbKBVvHq lF78JiZodNgU4WAJQP8Ht2LlTXIwN/vjDHN4T62IWX8QOjbLs0lpOXx3hdKSgacplsLkWo xbjQcujypkdVIEaSjJfUR/d6BuAVQpCcULJI4KNDDvA2byFahe/AeTT80PIUaCYPfw2L9k D1+tkL4R+XJPfWyiU1inNC3PS19JX2yXDrivO1ZWRekJ3kklfIoxJZeBaJPJiw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bJI8oUMe; 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" X-Migadu-Spam-Score: -8.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bJI8oUMe; 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" X-Migadu-Queue-Id: 81CB623CCA X-Spam-Score: -8.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: 73rOpm7BLDN0 "Daniel J. Sinder" writes: > I'm trying to use a dynamic block with :match to filter columnview for a > checkbox column. However, the match is failing. Based on some variatio= ns > that do work (described below the example), it seems the closing square > bracket may be the problem. > > Here's a minimal example: > * Things > :PROPERTIES: > :COLUMNS: %20ITEM %CHKBOX{X/} > :ID: Things > :CHKBOX_ALL: "[ ]" "[X]" > :END: > *** One Thing > :PROPERTIES: > :CHKBOX: [X] > :END: > *** Another Thing > :PROPERTIES: > :CHKBOX: [ ] > :END: > > * Dynamic Block > #+BEGIN: columnview :id Things :match "CHKBOX=3D\"[X]\"" > | ITEM | CHKBOX | > |------+--------| > #+END: Thanks for reporting! It is kind of expected from the manual explanation about tag matchers: =E2=80=A2 If the comparison value is enclosed in double-quotes _and_ ang= ular brackets (like =E2=80=98DEADLINE<=E2=80=8B=3D"<2008-12-24 18:30>"=E2= =80=99), both values are assumed to be date/time specifications in the standard Org way... However, the heuristics described in the manual is obvious wrong here. I improved the match parser a bit to require a number inside brackets in timestamps, but this whole syntax is overcomplicated and difficult to understand. In any case, your bug should be fixed now on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3De022a0cea= 11a0e784ba20ac478a033da7fb1bb7f --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at