From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2FNxFzduAWEDUgEAgWs5BA (envelope-from ) for ; Wed, 28 Jul 2021 16:48:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KHYSEzduAWF+dAAAB5/wlQ (envelope-from ) for ; Wed, 28 Jul 2021 14:48:23 +0000 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 D824F2C467 for ; Wed, 28 Jul 2021 16:48:22 +0200 (CEST) Received: from localhost ([::1]:44846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8kr7-000850-Sl for larch@yhetil.org; Wed, 28 Jul 2021 10:48:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8kqF-00081j-4G for emacs-orgmode@gnu.org; Wed, 28 Jul 2021 10:47:27 -0400 Received: from mail.xgm.de ([2a03:4000:46:326:98d6:5ff:fe4f:3ded]:54380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8kqC-0004ka-OO for emacs-orgmode@gnu.org; Wed, 28 Jul 2021 10:47:26 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPA id 5E8BA1802E9 for ; Wed, 28 Jul 2021 16:47:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xgm.de; s=dkim; t=1627483635; h=from:subject:date:message-id:to:mime-version:content-type: content-transfer-encoding; bh=tVe3AZYZpmYJrMQ0LSANeZSeF8PCM5hNLjmuMrJO2D8=; b=Q2G8RN3xbYpPSiL5Ca4qyWxCiI415kGLhJL8wNkFin1Xf+kWVuFHFcwyG3QoJilwoO8Qdc 7eEyqSfzeoTQDCq556rOq/rA0FtqZsGj0u1pRrXZSWx/7Cf4FxxM/ZxIYaDvLgL5ZEfMAO KCZsVRG1LRMA6NjQIaqzjWxNzmFqLSVKmdvUbc+WGh9Ys9z1mabLQN/8hyr6+wzUh6BfFx M99+MkMMtggURayQZV87YItiLcmtp77TIa5XJ7MRfCetrZoIeEECnfmD+xqBs6iks2aEmC gowXC29L+ms4OgYCcZvZFcNO7CvPeNCgsdsetwQdwFTthPMs9wH0Lie4nNxwQw== From: "Florian Lindner" To: emacs-orgmode@gnu.org User-Agent: SOGoMail 5.1.1 MIME-Version: 1.0 Date: Wed, 28 Jul 2021 16:47:14 +0200 Subject: org-timer-start at specified time stamp Message-ID: <38-61016e00-b-203b4540@108991261> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: None Received-SPF: pass client-ip=2a03:4000:46:326:98d6:5ff:fe4f:3ded; envelope-from=mailinglists@xgm.de; helo=mail.xgm.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, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627483703; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=tVe3AZYZpmYJrMQ0LSANeZSeF8PCM5hNLjmuMrJO2D8=; b=ZkfYsC3jGRXXM5CkzTD4RHh/aZCAzywwMltR3F1pTNt9AvMxpfKgQgETJKfM84PP3JjHuK WXK8oleSEkn9HOm0mRw+kNTpWry+bTwRcXA9zpPbfazzQ4Vlyxa/nn7fAA6Hxn7WlpNzhq UDH+cWAatE/86DSxpaB2t1ei09mAFd+oHi2ncOOdq8J2g1VFvy7uBQdphsPaSerRJBYXPn wNVMtSQ/uW5HcJhIeCYFoIJrUHMBSsQKGfIKfQesJj+zoG861xhcDQa9dWQbPMkK87dmez jVWiyjsjVw9neUz1fghjMuPEnnhsiRzWL4znntFKu8WbxsmnZXD5Rirpc9VsdQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627483703; a=rsa-sha256; cv=none; b=h3JHDLwzFXlmXCa6N4HawkyEqM9S7xvbzzXQcJIPG1kAlnrAHbFZxu0elnvsoqHTnfYAfK B6Ycgt1q/iunocf1oAD5lK44AlCoFtBdJSVnKes6nfNakhQoauVKPmbAZkCOnvANe/c0J1 d+IeRAWCQZhYBWu4WTKbshBq8o2OM1L+Po56PkwAZC2E4X/sjNX+cAad5KfYUdqZHQXvXi ZOnz82R43WljN6bPJY4qQq8vK90NM3oPpUWtXBcO0JwQ0JADiWeHN/t+DjYIVke1q6J/xQ jeejeA40WoilV7WYu7iwTLz9cihhKd+OfGuOY+GEGZF6eD2TPsLT/bWUPORT4g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=xgm.de header.s=dkim header.b=Q2G8RN3x; dmarc=pass (policy=none) header.from=xgm.de; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=xgm.de header.s=dkim header.b=Q2G8RN3x; dmarc=pass (policy=none) header.from=xgm.de; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: D824F2C467 X-Spam-Score: -2.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: Y1GDlBWkUS+5 Hello, frequently, when taking notes at a meeting with org-timer active, I hap= pened to forget to start the timer at the beginning of the meeting: * Meeting Start: <2021-07-30 Fri 15:37> - 0:00:05 :: started the timer to late - 0:00:18 :: want to set zero to the time above 15:37 - 0:00:34 :: how do so? The documentation of org-timer-start says: > Set the starting time for the relative timer to now. > When called with prefix argument OFFSET, prompt the user for an offse= t time, > with the default taken from a timer stamp at point, if any. > If OFFSET is a string or an integer, it is directly taken to be the o= ffset > without user interaction. This is about a timer stamp, not a timestamp. Of course, it's possible= , but to get the offset, I need to compute the amount of time from time= r start to meeting start. > When called with a double prefix arg, all timer strings in the active= > region will be shifted by a specific amount. You will be prompted fo= r > the amount, with the default to make the first timer string in > the region 0:00:00. My proposal is to enhance C-u org-timer-start to also determine if it i= s located at a timestamp and use that as zero time. Furthermore C-u C-u org-timer-start also can accept a timestamp and shi= ft the region as if the timer was started at that time. All that requires to distinguish between a timestamp and a timestamp. F= or the first part, it is possible, as the timestamp includes a date, fo= r the second part it's more hairy, as 15:37 could be a shift by 15m and= 37s or the timestamp of 15:37 (3:37 pm). Alternatively, a new function can be introduced that manipulated the th= e running timer accordingly. What do you think about that proposal? I am happy to work on that mysel= f, but probably need some assistance from you! Best, Florian