From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 6KpQMBpkX2N4YQAAbAwnHQ (envelope-from ) for ; Mon, 31 Oct 2022 06:58:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OM1WMBpkX2PURQEA9RJhRA (envelope-from ) for ; Mon, 31 Oct 2022 06:58:50 +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 7AC7D3184F for ; Mon, 31 Oct 2022 06:58:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opNoS-0007er-IF; Mon, 31 Oct 2022 01:58:20 -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 1opNoQ-0007dz-19 for emacs-orgmode@gnu.org; Mon, 31 Oct 2022 01:58:19 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opNoO-0000g8-8L for emacs-orgmode@gnu.org; Mon, 31 Oct 2022 01:58:17 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 67470240103 for ; Mon, 31 Oct 2022 06:58:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667195894; bh=6cOWRABb4t1cyB2hDZ03LpfZOVRohZ986cqUAlkhK+Y=; h=From:To:Cc:Subject:Date:From; b=eYSrm9Capg7Fhriwzu3rzq7DlkuGjXww0J4wtmSaVEGjBZQ023LYMhUZ2xnTpha3x oWzQHYj5ygwIFzf3Vg2vAreyMJGiTYd1c4CBwrTXND6cD5W16d3pPvQ7JzjIhymrsT X4iXZwDhAGtQ5MRipolGHttDLaDSReQ9QhF+p/0PoZQYqdJ8oy2elYFRIvUDuA1Owk 85tF4cdrWEY9v3t86G6qxrHhifnhA5i28pGpyKWBo3phCKJWNJuekKaMzLwxoH9R4Q gLqQvC2/d9+5BWuM7JnyfCw+bWU7mwUKNxAK0mhE71WnWIuJ1OYIkq/pbESLyNVPJP auzL4HnD/r0XA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N12WT0r9dz9rxF; Mon, 31 Oct 2022 06:58:12 +0100 (CET) From: Ihor Radchenko To: "Samuel W. Flint" Cc: Org-Mode Subject: Re: [PATCH 1/2] lisp/org-clock.el: Make switching states on clock-in/-out easier In-Reply-To: <87sfjfvhiz.fsf@flintfam.org> References: <87sfjfvhiz.fsf@flintfam.org> Date: Mon, 31 Oct 2022 05:58:51 +0000 Message-ID: <87o7tsjzz8.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de 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, RCVD_IN_MSPIKE_H2=-0.001, 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=1667195930; 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=AulJWgYP24xwVkZXyW+VzCYqSx2ntOnrNdSVP4fCjVs=; b=XqdcQdTxoPPFIqsPWtmYZS5Lg3+ZQytEmG4FFU0mPTl+uEmudIWtz1ocMjXiQfp5teLJnx w8e/x+MJRnLeTcNF7Wj1Rn4rwuGCnX1LlbGI0KHpSmhj5J+6G3ItZ+iFcq6YJBuaaxjDSm 7IvX25ayuFUkRX9bj4tt233gcxbKFO4sXxTXnH02nWGB4PfVCyX0m330zTAz3pWZ1O0BZ4 Zl39kvf5CuqR8EMASBXZwSZxKPYzNY/0i8gagZvdqm6soZFZ/hWAHnRZ9wSO9qorvpc03v ufalbeiZJkKsHfFEctijPaIKxj1nSxom6Iy+qgMeUXCimCzgjIoAeVBP89QBZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667195930; a=rsa-sha256; cv=none; b=ILbdx5Xn9Jl4M8uI9Kstx7EqPspt0seK7km6Y3aplOGAIUuGkX+d2cDZX6NoyIvN8kkyM2 3avoJ+Sku9z0krAF1UHC9ESrZaIhgKJu4582bvkndsDXY83Lj1aTfBSDdA4RqJT0jtCb/x Jpp+7Yvb6D3P25sZWjvcvsa10ugW4Q6j+3IIC6SRsgPby9uTb5CgB5dhWBoI1f25K0QiG0 zNxjclzb8NrGefazB3TPLn3feyV6Gk5+YXSoKU1UayyWkqqwhcoCiKo9SCkqqnalpC2Zyz Ei0k3zAPGjJrEUW6PUKJOZozh/gam4Q9GhXA5q6oGIrhE90QaEbTeE81raiTEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eYSrm9Ca; dmarc=pass (policy=none) header.from=posteo.net; 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: -3.46 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eYSrm9Ca; dmarc=pass (policy=none) header.from=posteo.net; 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: 7AC7D3184F X-Spam-Score: -3.46 X-Migadu-Scanner: scn1.migadu.com X-TUID: VNtkDcAvj+lm "Samuel W. Flint" writes: > * lisp/org-clock.el (org-clock-in-next-state, > org-clock-out-next-state): Define and document customizeable variables > to describe the "next state" on clock-in/-out. > > (org-clock-in-switch-to-state, org-clock-out-switch-to-state): Add > options to use the `org-clock-{in,out}-next-state' variables to change > on clock-in/-out. > > (org-clock-in-next-state-function, org-clock-out-next-state-function): > Define functions which can be used to select the next TODO state on > clock-in/-out. > --- > lisp/org-clock.el | 48 +++++++++++++++++++++++++++++++++++++++++++++-- > 1 file changed, 46 insertions(+), 2 deletions(-) Cancelled See new version of the patch in https://list.orgmode.org/orgmode/87eduud4ap.fsf@flintfam.org/ -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at