From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 YBS8M9y+R2WGNQAA9RJhRA:P1 (envelope-from ) for ; Sun, 05 Nov 2023 17:12:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YBS8M9y+R2WGNQAA9RJhRA (envelope-from ) for ; Sun, 05 Nov 2023 17:12:12 +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 7626A39164 for ; Sun, 5 Nov 2023 17:12:12 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=JZl6NW+X; 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=1699200732; a=rsa-sha256; cv=none; b=LSbSw9pcS9IB4C/u+KREhr0w8rdVWVCREnUFFjlY5Qz+M/bR6Rp62sz8gUHAy0Ff3Knv+H KdO5xToCKyPjDebzgwC6hHzKnurZUST3PzcdbJE2NVlHetFssSHfUT2AEwzXTX1JMOSZ5Y 8Ijlk0XG1JbULq0P07gWWSsWmCpsZ9WwWxo6pYGwmVI7lhShrILxbgN/xlu29c78GNakqa BPrF/mXlzr0JKs8VhHWA77nOZGqcnI0mHhGvH5ZbCnJh6FULVjRU6ehnl32pS9vfcf1aVe A79Y5s00sgdc6YU3NS94VYKQvwxkJoQmpNGMOx6JB8kejWyVJymcdtiBiGLSpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699200732; 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=qIVWAd0yZ79co3hNc3j/dNizjPUb2RDdWmBT9qeAKJ8=; b=JSpUumH4TTwD01kPa+8Fzxa/g3e9kOaVDyuoEmPxFMRG9wu5NOqAT245JeFdz1/Wbki2wQ OL/HocZ32jNgIbjChMQKZKVYgcWlvRV8DmH3RHF9hyxxksSI+s2sTwlJ1Y0w/VLBKvR2uS 3a3j6UcBLYgE1nmANfBXGQw+NU0Ra8x+sbdlgQXO0QLpuVWFoFb4RY0jRfJd2sr4fQhEhP 8hjRRmCxL+pFbRDAR2FWz4Iltdz8w++wDFMRFn5q9ZO9ptmq1GVb3OaqTi2/4DK/XcT1M0 sS1IGstGh0B9zJGKP2ocQWaGUPMte8fzeUoHqgLK08vRumGrVhjK1gDWC96kMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=JZl6NW+X; 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 1qzfij-0001P7-11; Sun, 05 Nov 2023 11:11:29 -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 1qzfih-0001Ot-1x for emacs-orgmode@gnu.org; Sun, 05 Nov 2023 11:11:27 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qzfif-0002aX-7v for emacs-orgmode@gnu.org; Sun, 05 Nov 2023 11:11:26 -0500 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-40859c466efso27575035e9.3 for ; Sun, 05 Nov 2023 08:11:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699200683; x=1699805483; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qIVWAd0yZ79co3hNc3j/dNizjPUb2RDdWmBT9qeAKJ8=; b=JZl6NW+XeBdhxKf3PRxbpwVXP0zSSxh3XFkZ7zLCPFnZxjceMPsINyRUzkAJFvl27X ruCyTPCiWWxSK1cxDUlepvOaGr5ZmoFJrcVni5AOu6X+sGX4Kq3cpIykve5mwozzR5YI iJDXdF/0hR9T9ngSYUCi4ZqkHpfT/T4HFSXp6dMzYXMgoz3kUekPAMF3/FqaR/k+4dUV Hern3Ts/X3KB0UbtL0zunjZHiHQtkA4wyoT27Osxdln08UfrzJlptNbmlGlf6JLDIQbE KRDjW0+0WeZ7Ce3DOiftRY/GiIsaOiT4zy7L4NLW5V4+wzATiGXbqWSPJz7pNwxxcRcH P05g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699200683; x=1699805483; h=cc: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=qIVWAd0yZ79co3hNc3j/dNizjPUb2RDdWmBT9qeAKJ8=; b=t0kmEhJ3jlOUfrgqQugztcKCSdwoX7d9pldWNnSI2RIrbV3sGRh3PKTLGhqTzXTePQ Z7C7L63lIu+qIhOmqFR9gC7skLAMNMcdH63lWXHDvKVS3ybjBEODc0ghEUQ9oVOz4m+H lHAOEdSLfwd6ceEllS1x1pXrpK5geNx83D654o0Ju1sEOISCP8fRwMgAVloKfctRKfrb rDrRTAvFeiQgvNFhDMUDKcY9gVq1eYAZkJfcwd1RjSNeZRU2CwikUmGjD1dgFFegoZRv NSZwyHGTbc7G3YDIQ7TzTv16SS5QlAP+RxQdsYEXO7tPaMPiVWCwp0MONPYt6MSMcgOd u4tQ== X-Gm-Message-State: AOJu0YzmIUpWvb2nAE8qS+0S0m/YL2uEhHWc5ARkEZANNPmn7g3cshoy aG61+YSYuZ9aZKFHTg6w+vvhxcIy+ylg7mhb7a3zitls/4g= X-Google-Smtp-Source: AGHT+IE0ZQS9EVt9TMFYj/11/0JIakFiXUJDGSDqXwykYUgbizZF3aXnisyYqEiebDq0sslvySus0S9ZEQXBQDKscds= X-Received: by 2002:a05:600c:4f85:b0:404:7670:90b8 with SMTP id n5-20020a05600c4f8500b00404767090b8mr23916107wmq.27.1699200682561; Sun, 05 Nov 2023 08:11:22 -0800 (PST) MIME-Version: 1.0 References: <874ji05qrj.fsf@localhost> In-Reply-To: <874ji05qrj.fsf@localhost> From: =?UTF-8?Q?S=C5=82awomir_Grochowski?= Date: Sun, 5 Nov 2023 17:11:10 +0100 Message-ID: Subject: Re: [FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]' To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000001615c9060969fd07" Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=slawomir.grochowski@gmail.com; helo=mail-wm1-x335.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: -8.53 X-Migadu-Queue-Id: 7626A39164 X-Migadu-Spam-Score: -8.53 X-TUID: jTgRFgBy6nke --0000000000001615c9060969fd07 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes. You are right. After thinking about it I think the same. But why is it allowed in '(org-toggle-checkbox &optional TOGGLE-PRESENCE)'. To set a normal checkbox to 'partial state'? Description from function: 'With a double prefix argument, set the checkbox to "[-]".' Probably it should not be allowed for normal checkbox only for parent checkbox, which have children. What do you think? Regards, S=C5=82awomir Grochowski On Sun, Nov 5, 2023 at 1:25=E2=80=AFPM Ihor Radchenko = wrote: > S=C5=82awomir Grochowski writes: > > > 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 > function > > '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? > > I think that your use-case is not necessarily common enough to change > the defaults. But we can introduce a defcustom here. Patches welcome! > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --0000000000001615c9060969fd07 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes. You are right.=C2=A0
After thinking about it I th= ink the same.=C2=A0

But why is it allowed in '= (org-toggle-checkbox &optional TOGGLE-PRESENCE)'.
To set = a normal checkbox to 'partial state'?
Description from fu= nction: 'With a double prefix argument, set the checkbox to "[-]&q= uot;.'

Probably it should not be allowed for n= ormal=C2=A0checkbox only for parent checkbox, which have children.

What=C2=A0do you think?

Regards,= =C2=A0
S=C5=82awomir Grochowski






On Sun, Nov 5, 2023 at 1:25= =E2=80=AFPM Ihor Radchenko <yantar92@posteo.net> wrote:
S=C5=82awomir Grochowski <slawomir.grochowski@g= mail.com> writes:

> 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. [=C2=A0 =C2=A0] - not done
> 2. [ - ] - an intermediate state
> 3. [X] - done
>
> So I think all 3 states should be available to choose from in the func= tion
> 'org-columns-next-allowed-value''
> for functions that use checkboxes.
> In code this is a line
>
https://git.s= avannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/org-colview.el#n754 >
> So I would change it from this:
> -=C2=A0 =C2=A0 =C2=A0 (`(,_ ,_ ,_ ,(or "X" "X/" &q= uot;X%") ,_) '("[ ]" "[X]")))
> to that:
> +=C2=A0 =C2=A0 =C2=A0(`(,_ ,_ ,_ ,(or "X" "X/" &qu= ot;X%") ,_) '("[ ]" "[-]" "[X]"))) >
> What do you think?

I think that your use-case is not necessarily common enough to change
the defaults. But we can introduce a defcustom here. Patches welcome!

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>
--0000000000001615c9060969fd07--