From: Ihor Radchenko <yantar92@posteo.net>
To: 875yg6elmh.fsf@flintfam.org
Cc: Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: [PATCH v2 1/2] lisp/org-clock.el: Make switching states on clock-in/-out easier
Date: Thu, 27 Oct 2022 04:45:03 +0000 [thread overview]
Message-ID: <87lep1ooxc.fsf@localhost> (raw)
In-Reply-To: <87eduud4ap.fsf@flintfam.org>
"Samuel W. Flint" <swflint+orgmode@flintfam.org> writes:
> * lisp/org-clock.el (org-clock-in-switch-to-state,
> org-clock-out-switch-to-state): Allow
> `org-clock-{in,out}-switch-to-state` to be an alist of
> current/next-state pairs.
>
> (org-clock-in, org-clock-out): Add logic to handle
> `org-clock-{in,out}-switch-to-state` as alists.
Thanks!
Before we continue, could you please confirm if you have FSF copyright
assignment? My records show that you have made two commits to Org mode
previously, and they total LOC is 15, which is maximum allowed
contribution that does not require copyright assignment. See
https://orgmode.org/worg/org-contribute.html#copyright
> "Set task to a special todo state while clocking it.
> The value should be the state to which the entry should be
> -switched. If the value is a function, it must take one
> -parameter (the current TODO state of the item) and return the
> -state to switch it to."
> +switched. It may also be an alist of `(CURRENT . NEXT)' pairs.
Maybe "`(CURRENT . NEXT)' TODO state pairs"? It will be slightly more
clear.
> (defcustom org-clock-out-switch-to-state nil
> "Set task to a special todo state after clocking out.
> The value should be the state to which the entry should be
> -switched. If the value is a function, it must take one
> -parameter (the current TODO state of the item) and return the
> -state to switch it to."
Same here.
The rest looks good.
If you can, please also add tests.
--
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>
next prev parent reply other threads:[~2022-10-27 4:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-26 14:53 [PATCH v2 1/2] lisp/org-clock.el: Make switching states on clock-in/-out easier Samuel W. Flint
2022-10-27 4:11 ` Max Nikulin
2022-10-27 4:45 ` Ihor Radchenko [this message]
2022-10-28 15:03 ` Samuel W. Flint
2022-10-29 3:51 ` Ihor Radchenko
2022-11-21 9:06 ` Ihor Radchenko
2022-11-21 14:53 ` Samuel W. Flint
2022-11-22 3:36 ` Ihor Radchenko
2023-01-27 10:38 ` Ihor Radchenko
2023-07-16 8:22 ` 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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lep1ooxc.fsf@localhost \
--to=yantar92@posteo.net \
--cc=875yg6elmh.fsf@flintfam.org \
--cc=emacs-orgmode@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).