From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kNJzELk8IGMPewAAbAwnHQ (envelope-from ) for ; Tue, 13 Sep 2022 10:18:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8JeVD7k8IGM2jAAAG6o9tA (envelope-from ) for ; Tue, 13 Sep 2022 10:18:01 +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 9F30911C71 for ; Tue, 13 Sep 2022 10:18:00 +0200 (CEST) Received: from localhost ([::1]:58434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oY17F-0000xu-8Z for larch@yhetil.org; Tue, 13 Sep 2022 04:17:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY0xq-0003xB-KN for emacs-orgmode@gnu.org; Tue, 13 Sep 2022 04:08:14 -0400 Received: from ciao.gmane.io ([116.202.254.214]:40050) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY0xn-0000V2-O7 for emacs-orgmode@gnu.org; Tue, 13 Sep 2022 04:08:14 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1oY0xa-00097I-6D for emacs-orgmode@gnu.org; Tue, 13 Sep 2022 10:07:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Karl Voit Subject: Re: Suggested Syntax for cancelled checkboxes: [-] as non-blocking dependency Date: Tue, 13 Sep 2022 10:07:53 +0200 Organization: www.karl-voit.at Message-ID: <2022-09-13T10-02-59@devnull.Karl-Voit.at> References: <2022-09-12T14-35-24@devnull.Karl-Voit.at> <87sfkwt3j4.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: slrn/1.0.3 (Linux) X-GPG-Key: http://www.Karl-Voit.at/Karl_Voit_GnuPG_public_key.gpg X-Registered-Linux-User: 224337 X-Confession: Pastafarian http://www.venganza.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Reply-To: Karl Voit Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663057081; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=sSSgZjRhdpRacZxwEVu8QBlLIPEu+VXQR252Z5I5EmE=; b=qAMQ/Tx2vOGKjkvHadxH7CsqCtFTz+us8yUhDoRMg1wrOLh3clBDnmbO6wglv2TybsgFt2 flVreQcxN3x950P3eRSjVh9lHPzsgZWx9v+Vk17cDJaIN/sAAsEPXyodixl2i4GdmfdHrX J8qltJMKXoA/YDK/J6O5Ox1UgDJ07URMrmR0+7z1fKP+Y6yqVCoGoLQDdDiFnBHE3GXeCq Rvg3T9h4u1ZoLjaWCCNzzSBjXdP9R2E6wCp4lUVFmYbJcxzXUjo4t8HN2RzOxwjUH0iP8t g31cq9B4FxZvwyXTF0jrConuD4hnYFFFW01HnxTn/4OGek0tX7FrfmC0MeQmmQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663057081; a=rsa-sha256; cv=none; b=JKep/wkGdoUTlxqNrRexyuAHL6zUB/l4Huuw26ByuAILXZS1OGhDPOnrLx1ceCmpyehut0 AAG8UujutQFSoPBwSvaSMuMFRHjbVWXzcG7ZhOdt/jTP6OmZ6hR9wNUTJEtkDy2cyc1wJe GS9Kng+2AEYNCYCe9XZx1KH8BXSY8Ues6tTDQ+qsYg+8ceZDt5UjzBe0rRCWODZiVSa1TJ aaW7fBXrHBogkMMNbY1A3pe0l6sDrsVoGMKi/uGG+dtc0hXPI3BpAsrjTPGJ6Sof8iN7DZ Qvs1g9HD/X3bs66W3s9UVmocczuvSqWrulWU9CFckDb3Lv2bMEYPgyLaxPmv4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 9F30911C71 X-Spam-Score: -2.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: NkP8rB+PMnr/ Hi Ihor, * Ihor Radchenko wrote: > Karl Voit writes: > >> I was using list checkboxes like that: >> - [ ] open task >> - [X] closed task >> - [-] cancelled task > > From the manual (5.6 Checkboxes): > > ‘C-c C-x C-b’ (‘org-toggle-checkbox’) > Toggle checkbox status or—with prefix argument—checkbox presence at > point. With double prefix argument, set it to ‘[-]’, which is > considered to be an intermediate state. > > [-] is not considered done by our conventions > > Here is an example of a checkbox list. > > * TODO Organize party [2/4] > - [-] call people [1/3] > - [ ] Peter > - [X] Sarah > - [ ] Sam > - [X] order food > - [ ] think about what music to play > - [X] talk to the neighbors Yes, that makes sense. [-] is not a candidate for a cancelled checkbox for that reason. :-( >> (setq org-enforce-todo-checkbox-dependencies t) >> ... any [-] checkbox will be regarded as non-finished contrary to >> the behavior of TODO/DONE/CANCELLED heading states. >> >> As a workaround, I may use: >> - +[ ]+ cancelled task > > As you can see, we already have conflicting convention, and we cannot > change it without breaking backwards compatibility. > > `org-block-todo-from-checkboxes', currently uses > > (org-list-search-forward > (concat (org-item-beginning-re) > "\\(?:\\[@\\(?:start:\\)?\\([0-9]+\\|[A-Za-z]\\)\\][ \t]*\\)?" > "\\[[- ]\\]") > end t) > > as a condition that some list items are marked incomplete. > > So, you can use something like > - [C] cancelled task > > But beware that this is an internal implementation detail that might be > changed in future unless we decide to document the existing behaviour. In that case, I prefer not to depend on that internal detail and start using +[ ]+ as a workaround which causes the parser to not detect a checkbox at all, as far as I understood. Thanks for clarification. If we wanted to introduce a cancelled checkbox state, it seems to be the case that this would require a new approach like [/] or similar. Is it only me who is thinking that a non-blocking cancelled checkbox state would be a good idea? -- get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode: > get Memacs from https://github.com/novoid/Memacs < Personal Information Management > http://Karl-Voit.at/tags/pim/ Emacs-related > http://Karl-Voit.at/tags/emacs/