From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6EcQMzygV2OPTwAAbAwnHQ (envelope-from ) for ; Tue, 25 Oct 2022 10:37:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8NQbMzygV2NR0wAAauVa8A (envelope-from ) for ; Tue, 25 Oct 2022 10:37:16 +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 71BF520012 for ; Tue, 25 Oct 2022 10:37:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onFM4-0006GF-Ec; Tue, 25 Oct 2022 04:32:12 -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 1onEKz-0004us-7O for emacs-orgmode@gnu.org; Tue, 25 Oct 2022 03:27:01 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onEKx-0001ns-Ae for emacs-orgmode@gnu.org; Tue, 25 Oct 2022 03:27:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 60FE7240027 for ; Tue, 25 Oct 2022 09:26:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666682817; bh=LR1ARwNyN4S7DRRTqQgOISDZcKLfTKUOoUNQCDsRYPQ=; h=From:To:Cc:Subject:Date:From; b=jxZHyLHaGggSWoAt9BqIq81/sAoHpbOwTK2FQja4pUayQlP6VVoDc1BlIIddrtnNU Dq/G7kCVv3DZaBn1GpZI3C0UCXTRtZOzBDRYRx9Zr7bzwlPtCOaETg9cncXROrKFGr O30zrEbAHyQPeTKTKqGUZP5jPWxalWWH90TCBeIc9lHi86Kj8MkZ+hz7T2nPBT6s4E kKZ/6h+ieo2RfSoPEg+/TkOcgVp3ajGt47CUZL5bAgrVYwdUwcgzu5uI4kAGJNKBy+ c+kpiGl9ttRzHN9q2+EVihKlvBpqr7mfPZgyukRjldYzuoUV9QjjbGpi2ZKJsVQUHW cU2LG32MIw3Kg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MxNmb5gpkz6tpY; Tue, 25 Oct 2022 09:26:54 +0200 (CEST) From: Ihor Radchenko To: "Samuel W. Flint" Cc: "Samuel W. Flint" , Org-Mode Subject: Re: [PATCH 2/2] doc/org-manual.org: Document org-clock-{in,out}-switch-to-state In-Reply-To: <874jvtnwao.fsf@flintfam.org> References: <87r0yzvhi9.fsf@flintfam.org> <87eduxporw.fsf@localhost> <874jvtnwao.fsf@flintfam.org> Date: Tue, 25 Oct 2022 07:27:38 +0000 Message-ID: <87czagtlat.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_DNSWL_MED=-2.3, 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=1666687036; 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=P094XsfHCzdeDkPqI1hT2BSNeFaU49FSVGEH1laV06o=; b=DESkbVW8ROdttcU6wzOsKQJk1GgSddTX+IzjOyVl0xmsWu3NvQUvQgj+JaCHFNq+1uNB6R /ny/Kl8Yidas/0MYn+SR6A+DahGC+RtHw5bQG47VpgB9hm3kkynbBf4hIBkJVGeoC59xqe +jPe86dy1/ElwlnddSuLFIuuCQHqntd+DeP5MG6UYWcBNlIwPG1lxhTNLedDXoWq7uezLE aBPc3nAiveOFfGrt3o0dX+Vsk2YlbasxxZAOpZilo9LQDuhmCqHl7yZUr2gumLRGAsmWL6 6fBNtvNzb3riJ2VBnWXzLaK8WXPw8fhfDhDZvzmbA4nwSiQrge5JLWYmZnrMtA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666687036; a=rsa-sha256; cv=none; b=VrSwilFbdR3yrXIUlCgQq33d+cAtgnKFrmbFI8K+KSKQB2uoVP7MHdL0HsiGMxSDhpG0SX epEpbjJypN7udDDirNmoV7KWqRSBUaZtdeOZ3VebYhbNK3yagKnQeIacop214xAyl5Y9Au tyBkbdptrgpy4K/pKorNbnOo6YWsWYiC4cxBQWKwZIo4KBkiHEa+kkSUNrHQL2PZmt2LoH o4ZiY/Kp/DaBsSlaf51ZHfW5MsQ4l5UpS/yn0e5eg/Q4jrynRyovyoqusGqhf+o8l5xr9B Zf1oMPVLsoC/YEM1/ax9JKiBAhR3Sy90RVXWRMPYozHCqdaIwdycdFgxEq8rew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jxZHyLHa; 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.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jxZHyLHa; 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: 71BF520012 X-Spam-Score: -3.61 X-Migadu-Scanner: scn1.migadu.com X-TUID: SL5hrS6Ac2zb "Samuel W. Flint" writes: > IR> Could you please explain in simple words when your new feature can be > IR> useful? > > The variable `org-clock-in-switch-to-state` can be really handy, > however, it wasn't documented in the manual which made discovery > somewhat difficult. The manual patch documents the variable, as well as > a new variable exposed through customize to describe how states should > change on clock-in/clock-out. This means that instead of having to > write a custom function to do this, it's provided and exposed through > customize and thus should be more discoverable and hopefully usable. > Patch 1/2 provides the implementation. > > Consider, for example, the following settings: > > (setf org-clock-in-switch-to-state 'org-clock-in-next-state-function > org-clock-in-next-state '(("TODO" . "WORKING") > ("WAITING" . "WORKING"))) Such example would look nice in the patch to the manual. Also, why not simply allow the alist to be another allowed value of `org-clock-in-switch-to-state'? Using an extra function is cumbersome and also confusing. > This can be applied similarly for org-clock-out, though I'm not sure how > useful that will be. I really do not see much value in changing todo state on clock out. Maybe others do. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at