From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 2CZeEfeVQmWyLgAAG6o9tA:P1 (envelope-from ) for ; Wed, 01 Nov 2023 19:16:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2CZeEfeVQmWyLgAAG6o9tA (envelope-from ) for ; Wed, 01 Nov 2023 19:16:23 +0100 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 D209D41FE4 for ; Wed, 1 Nov 2023 19:16:22 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=ZDnhyzFY; dmarc=pass (policy=none) header.from=gmail.com; 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=1698862583; a=rsa-sha256; cv=none; b=lkpC56EmJLUJntryJpIbAtO/iIMmRFiJgQDjIXvhZrcxFVhCKko5VJFrUPHX0h95FKeOWG ky0uv4N6rq9If3puUYuq5WIdZ12oVtY8APiaHE6fpLeGtCEWTcNmEKnAfiNAoKpeuRjNlV j6fuMWLp+cR2RQqfQTh1T0zfK97OOFTVu+jXhXRJqaF5uCgitf1a3MWbs032d3dQLH8OIA u65C80Nevbmmza77JlYMNZCxS2aeWHeQQY0R6JhiSdgl9IsroQEvQVUBlu/Ttl73P4Sw8s uKzLMFro9rdFz0BI3jqE+GHZHvJFREv6CIyaWkWdQuJJ1MfI6bEfhN79SKjbqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698862583; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=jHH8rkMTU8vXGhnCsenC6j7ZIKmkJUMiweYRZQJQGz4=; b=Zp1rpocXDCt0SL96clVMY1ovSQp5vVEEru9AyFQYPrJxc0K8AWzSpAtMPAqENEe0THnSu3 Sp834BuZAGFjevcfYp+tObis5nE1gShPDugjQc42X6eCJyqjthT9uuTnAEFJ+l5sNKsonc p5kvixYFU9v9+axHtCcDf96GFLyt2e4xbZ0S16wVMJ2wtXUkPZUtnp+Pknwn3WEHxXoTrj Ec91kRPNaGb1UvFxKqEaJITKeuKIeAWzDLNKVjCa5amNaqT8HHTX7zHU69NKJ+/YQCTv9E fb2E3mwf2k/dCrVEeZg5ZpswE8yQ3ajjw4cIgJvZ58RVlhT8TXuNduWZ04U8uA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=ZDnhyzFY; dmarc=pass (policy=none) header.from=gmail.com; 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 localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qyFkY-0007Ut-BJ; Wed, 01 Nov 2023 14:15:30 -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 1qyFkW-0007SD-R8 for emacs-orgmode@gnu.org; Wed, 01 Nov 2023 14:15:28 -0400 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qyFkM-0003B8-4D for emacs-orgmode@gnu.org; Wed, 01 Nov 2023 14:15:28 -0400 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-5094727fa67so174617e87.3 for ; Wed, 01 Nov 2023 11:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698862513; x=1699467313; darn=gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=jHH8rkMTU8vXGhnCsenC6j7ZIKmkJUMiweYRZQJQGz4=; b=ZDnhyzFYI8YyHSs651MNyA/mZ/fDKPAAPSWCxBnQd1wLnWctJReYDX4bImVCwIfx4T /bU3je85mTp9BstzwSaCKuL2jIRhMNn0T4XEL1ascQTP0Tf1Bmoh09qham3ctxjqTGkL ksGiXCxTdL2Wlg+2jyisq2RBXy7dCsy7udkHOPi0Rd3l3xBrzK99CzOvm62AymI3Qn8B 3UsqH+G5BcfeQmf5v32dT3qUd9jfUC5WEvaG11RAm9j806xyXTUh5yKtHwWLsLaPuiyV tpdxWxjelB60TlaGC2iaEf8FQPlTEogyaGEQ3eZPAlA5pqB47OOIC8MirJDrQlgCz1l6 u2LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698862513; x=1699467313; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jHH8rkMTU8vXGhnCsenC6j7ZIKmkJUMiweYRZQJQGz4=; b=M2kr9RMG3j2iLyWDc4WidrQvTIrlX7qE8tXH8Vkl5qzJHYiA+n2RiLTv4ak6fie1H2 PyAAo1yaN3cfLPJnLplKEYc0Mbdj8ln8KoJEmAwnf8R6pT+yxtbfFf8y/KiAA/RutprW ZRdBQm1pkcWXH289t3V7OQ29YkZNPuwZRacD8rcurPoci8kKZPNo368mP1QQa9/u35IU IBj1aBq85NFi/bebfBIlTlGSyfZlUwekoVdgeBV7TaMHIJIenPXCAH6b5cxFblys/szm IejIwIG+pswxcH8Wc5MbIb0sCkJ94TGQ3cEX8upNUjwN2s//IdUN7MzDbBZnH6uyElB5 ZZVg== X-Gm-Message-State: AOJu0YwzukNrsxLF5dAkhqTc5teJbm5tRH7huPqHPyxLyk88Wc6IqArh D0zq8Gr8KvqBPgTjQPgB4XhevSQGGyvH05sLHxOAoTQ92dg= X-Google-Smtp-Source: AGHT+IFv9oa/7bASsLUMkOdP+ICImAJKuiNAeeMW7kpIHROMVvUziG6pbjZWcw/oSKFlA90u8QDeyw3FnNVLhUjyiwU= X-Received: by 2002:a05:6512:3991:b0:507:b911:6706 with SMTP id j17-20020a056512399100b00507b9116706mr15553617lfu.25.1698862512943; Wed, 01 Nov 2023 11:15:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?S=C5=82awomir_Grochowski?= Date: Wed, 1 Nov 2023 19:14:59 +0100 Message-ID: Subject: Re: [FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]' To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000009b372806091b403f" Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=slawomir.grochowski@gmail.com; helo=mail-lf1-x12f.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: mx11.migadu.com X-Spam-Score: -9.41 X-Migadu-Queue-Id: D209D41FE4 X-Migadu-Spam-Score: -9.41 X-TUID: RNq2phWblSeY --0000000000009b372806091b403f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have found good explanation of 'tristate checkbox': https://dequeuniversity.com/library/aria/checkbox-tri#:~:text=3DA%20tri%2Ds= tate%20checkbox%20can,parent%20checkbox%20is%20partially%20checked . "A tristate checkbox can be checked, not checked, or partially checked. The condition of being partially checked is based on the selection of child elements. If all child elements are selected, the parent checkbox is checked. If some child elements are selected, the parent checkbox is partially checked." So as I understand it this is the same approach in org-mode. But I'm using 'an intermediate state' to mark a checkbox that can't be 'done'. Like, I planned to go to gym: - [ ] go to gym on 01.11.2023 But the time has passed and I didn't go to the gym on this precise day. So I can't mark the checkbox as done, I can only leave it as it is. But after a couple of days I'm not sure if I was at the gym that day and maybe I just forgot to mark it as done. So for this purpose I'm marking it as [ - ] that explicitly I can't do this checkbox. Maybe others use it the same way? What do you think? Regards, S=C5=82awomir Grochowski On Wed, Nov 1, 2023 at 5:39=E2=80=AFPM S=C5=82awomir Grochowski < slawomir.grochowski@gmail.com> wrote: > Dear All, > > I was wondering how many states a checkbox has. > Based on https://orgmode.org/manual/Checkboxes.html I conclude that there > are 3 states: > 1. [ ] - not done > 2. [ - ] - an intermediate state > 3. [X] - done > > So I think all 3 states should be available to choose from in the functio= n > 'org-columns-next-allowed-value'' > for functions that use checkboxes. > In code this is a line > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/org-colvie= w.el#n754 > > So I would change it from this: > - (`(,_ ,_ ,_ ,(or "X" "X/" "X%") ,_) '("[ ]" "[X]"))) > to that: > + (`(,_ ,_ ,_ ,(or "X" "X/" "X%") ,_) '("[ ]" "[-]" "[X]"))) > > What do you think? > > Regards, > S=C5=82awomir Grochowski > > --0000000000009b372806091b403f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have found good explanation of 'tristate checkbox= 9;:
https://dequeuniversity.com/library/aria/checkbox-tri#:~:text=3D= A%20tri%2Dstate%20checkbox%20can,parent%20checkbox%20is%20partially%20check= ed.

"A tristate checkbox can be checked, not ch= ecked, or partially
checked. The condition of being partially checked is= based on the
selection of child elements. If all child elements are sel= ected, the
parent checkbox is checked. If some child elements are select= ed, the
parent checkbox is partially checked."

So as I understand it this is the same approach=C2=A0in org-mode.= =C2=A0
But I'm using 'an intermediate state' to mark = a checkbox that can't be 'done'.

Like,= I planned to go to gym:
- [=C2=A0 ]=C2=A0 go to gym on 01.11.202= 3

But the time has passed and I didn't go to t= he gym on this precise day.
So I can't mark the checkbox as d= one, I can only leave it as it is.
But after a couple of days I&#= 39;m not sure if I was at the gym that day and maybe I just forgot=C2=A0to = mark it as done.
So for this purpose I'm marking it as [ - ] = that explicitly I can't do this checkbox.=C2=A0
Maybe others = use it the same way?
What do you think?

= Regards,
S=C5=82awomir Grochowski



On Wed, Nov 1, 2023 at 5:39=E2=80=AFPM S=C5=82awomir Grochowski <slawomir.grochowski@gmail.com= > wrote:
=
Dear All,

=
I was wondering how many states a checkbox has.
Based on=C2= =A0https://orgmode.org/manual/Checkboxes.html=C2=A0I conclude that there = are 3 states:
1. [=C2=A0 =C2=A0] - not done
2. [ - ] - = an intermediate state
3. [X] - done

So I= think=C2=A0all 3 states should be available=C2=A0to choose from in the fun= ction 'org-columns-next-allowed-value''=C2=A0
for fun= ctions that use checkboxes.=C2=A0

So = I would change it from this:
-=C2=A0 =C2=A0 =C2=A0 (`(,_ ,_ ,_ ,(= or "X" "X/" "X%") ,_) '("[ ]" &= quot;[X]")))
to that:
+=C2=A0 =C2=A0 =C2=A0(`(,_= ,_ ,_ ,(or "X" "X/" "X%") ,_) '("[ = ]" "[-]" "[X]")))

What do= you think?=C2=A0

Regards,
S=C5=82awomir= Grochowski

--0000000000009b372806091b403f--