From: "Sławomir Grochowski" <slawomir.grochowski@gmail.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: [FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]'
Date: Sun, 5 Nov 2023 17:11:10 +0100 [thread overview]
Message-ID: <CABnDLzEOf6FH9=MRFuZp_r+syFvU0WYViVhzq6zqrBAZJt-uMg@mail.gmail.com> (raw)
In-Reply-To: <874ji05qrj.fsf@localhost>
[-- Attachment #1: Type: text/plain, Size: 1735 bytes --]
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ławomir Grochowski
On Sun, Nov 5, 2023 at 1:25 PM Ihor Radchenko <yantar92@posteo.net> wrote:
> Sławomir Grochowski <slawomir.grochowski@gmail.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. [ ] - 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-colview.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 <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>
[-- Attachment #2: Type: text/html, Size: 3043 bytes --]
next prev parent reply other threads:[~2023-11-05 16:12 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-01 16:39 [FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]' Sławomir Grochowski
2023-11-01 18:14 ` Sławomir Grochowski
2023-11-05 12:27 ` Ihor Radchenko
2023-11-05 16:11 ` Sławomir Grochowski [this message]
2023-11-05 16:48 ` Ihor Radchenko
2024-01-16 15:50 ` Ihor Radchenko
2024-01-23 11:10 ` Sławomir Grochowski
2024-03-16 7:55 ` Ihor Radchenko
2024-06-18 10:43 ` Ihor Radchenko
[not found] <87cyrry16e.fsf@gmail.com>
[not found] ` <874jd1t7c9.fsf@localhost>
2024-03-20 14:29 ` Sławomir Grochowski
2024-03-20 16:12 ` Ihor Radchenko
-- strict thread matches above, loose matches on Subject: below --
2024-04-02 12:23 Sławomir Grochowski
2024-04-02 13:03 ` Ihor Radchenko
2024-04-03 18:47 Sławomir Grochowski
2024-04-04 16:22 ` Ihor Radchenko
2024-04-04 18:12 ` Sławomir Grochowski
2024-04-05 19:39 ` Ihor Radchenko
2024-04-06 10:50 ` Sławomir Grochowski
2024-04-06 12:57 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABnDLzEOf6FH9=MRFuZp_r+syFvU0WYViVhzq6zqrBAZJt-uMg@mail.gmail.com' \
--to=slawomir.grochowski@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.