From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 iMxUGp7vW2OThgEAbAwnHQ (envelope-from ) for ; Fri, 28 Oct 2022 17:05:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KDgcGp7vW2O9pQAAauVa8A (envelope-from ) for ; Fri, 28 Oct 2022 17:05:02 +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 49F84159E3 for ; Fri, 28 Oct 2022 17:05:01 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooQtx-0000zA-QD; Fri, 28 Oct 2022 11:04:05 -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 1ooQtv-0000yw-EO for emacs-orgmode@gnu.org; Fri, 28 Oct 2022 11:04:03 -0400 Received: from mx.flintfam.org ([107.191.44.89]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooQtt-000688-9h for emacs-orgmode@gnu.org; Fri, 28 Oct 2022 11:04:03 -0400 Received: by mx.flintfam.org (Postfix, from userid 114) id C65FB1F592; Fri, 28 Oct 2022 15:03:47 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.9.2 mx.flintfam.org C65FB1F592 Received: from hilbert.flintfam.org (unknown [129.93.161.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.flintfam.org (Postfix) with ESMTPSA id 8E0711F54C; Fri, 28 Oct 2022 15:03:45 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.9.2 mx.flintfam.org 8E0711F54C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flintfam.org; s=mail; t=1666969425; bh=kQ1MfNZuSFfCfkv8Pb8b3fZ459EmSbfc63eyso9f5XQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=vtB3eW8JPEvTrhw9gIbqICRJEGNOAk/NMevQ8Lkjfo1bHdCBAP7onSzY4GJVxxS2K inYlqJMPQfZtT+1lUh+cMKCRE3shiQ587O3DGQgNlj/cqa1BCAL7MNuxwLXelXqgg/ kE2sjhUUaprVRF+fWPZg/d2hGNpt63F6oURnXBzF+DqrUbO4ypKMVyJSTqGIlCmZVr p7nAKYnePQKPqlLM273tulESz4QK+DtDBiwnHFogii6Xlm3LJH8DuQVIjgh1y8qpzk WFylyviUawrUHINjFwTpPZe4s7pxyOGYkl/C9MsD/5KIZkXzPi4E6gS5kzavdcXTmF KDM0ziKZzKphQ== From: "Samuel W. Flint" To: Ihor Radchenko Cc: Org-Mode Subject: Re: [PATCH v2 1/2] lisp/org-clock.el: Make switching states on clock-in/-out easier In-Reply-To: <87lep1ooxc.fsf@localhost> (Ihor Radchenko's message of "Thu, 27 Oct 2022 04:45:03 +0000") References: <87eduud4ap.fsf@flintfam.org> <87lep1ooxc.fsf@localhost> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Autocrypt: addr=swflint@flintfam.org; prefer-encrypt=mutual; keydata= mQINBFwL4JsBEACyFdnzyq7CBWXTItWoTSVukF0LnwOaPwcFnwf9kc9Njkkxy/qaqfrIHvugSp4K jHxzJjsod0KoaPkOllokqsudfjMHruVQDqr5SnGuueV+6DQnQy3EanWYeywrkzTWx+qeGBpQWs9b u/Ih8q4kzTlng62OmQ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IHWGSfGwYWUaW5Q5VKLMFPmM8v1mN6q4BnGgkLTgrDj/duLoYnYR449 AMk0tA== Date: Fri, 28 Oct 2022 10:03:44 -0500 Message-ID: <87v8o4at2n.fsf@flintfam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=107.191.44.89; envelope-from=swflint@flintfam.org; helo=mx.flintfam.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666969502; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature:autocrypt:autocrypt; bh=kQ1MfNZuSFfCfkv8Pb8b3fZ459EmSbfc63eyso9f5XQ=; b=p/N1bXANrRSlhlNzXDJnh308OEqRIpT3wi67UGUwt6oOqabMjNN7PvmoTZ5FwWQAYMWmL8 wnGSwqs9ucdp6BDdXb2l9EqJl78D+0RGSYMHiQCkqnYI1YLDrAp+JDCrfYSjLEV7crV9po qXbXPctES383k2m3Cr5zKmh068pXz5jFtx5LdA60vMxRSdPmqba8sRdMbx2UfHlI4hUmqI A4UYYqpxMRVfSoFTVwm18+Q9Z3NsrjvV0aMpqFbMltAmtbtydh3ej2QLZOGK9B7xcQWvY8 sAVOxLNYnt/EH6PW81byoDnrlSv2cFRQ4+O+bs4JknOrwirZdQvzJ2jWm3TAQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666969502; a=rsa-sha256; cv=none; b=r4yDmxDpnyOU8T+LEbo49J8jDRds8IFO2SfgBVcaLRDqYjjAGjoGX3gVOm3RhiRMJ0qjw6 1DMz1U95Jnj9kDPgOWjcHn/PyaOAv3Nxi4D0XEm3JSmeO7w2aHIdLT4IzZKwFEOuekWluw bJMTMAcxcOkKOeBIZKlKEXbckVcHtDMLJkAZ3rBXWDShiJUc6T2qxbN+nIvpQbiDAiZPQt yCEd7GzOlfmqwpo00hB6fnTxPwUcFo6M/gqAfn+kzXCNn/PkQZO7HOMwMSKJvlhCZ9WQZS uTP3l1ninlrj6ihY1UnC0hiI2quDEOISQtzoc6YREE6YcKHH3b77gv8CcRK1aA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=flintfam.org header.s=mail header.b=vtB3eW8J; 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: -8.42 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=flintfam.org header.s=mail header.b=vtB3eW8J; 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: 49F84159E3 X-Spam-Score: -8.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0RMrNdkgo7gZ >>>>> Ihor Radchenko writes: IR> "Samuel W. Flint" 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. >>=20 >> (org-clock-in, org-clock-out): Add logic to handle >> `org-clock-{in,out}-switch-to-state` as alists. IR> Thanks! IR> Before we continue, could you please confirm if you have FSF copyri= ght IR> assignment? My records show that you have made two commits to Org m= ode IR> previously, and they total LOC is 15, which is maximum allowed IR> contribution that does not require copyright assignment. See IR> https://orgmode.org/worg/org-contribute.html#copyright I've sent in the assignment, but I'm waiting on the FSF's response & a waiver/documentation from my employer. >> "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. IR> Maybe "`(CURRENT . NEXT)' TODO state pairs"? It will be slightly mo= re IR> 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." IR> Same here. I can adjust that as well. That would definitely clarify the documentation IR> The rest looks good. IR> If you can, please also add tests. I'll try my hand at it! IR> --=20 IR> Ihor Radchenko // yantar92, IR> Org mode contributor, IR> Learn more about Org mode at . IR> Support Org development at , IR> or support my work at Sam --=20 Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 EF0E 86C9 3E7A FA13 D704) =CE=BBs.(s s) =CE=BBs.(s s) O< ascii ribbon campaign - stop html mail - www.asciiribbon.org