From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id mOupEzFDR2b2RQEAe85BDQ:P1 (envelope-from ) for ; Fri, 17 May 2024 13:44:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id mOupEzFDR2b2RQEAe85BDQ (envelope-from ) for ; Fri, 17 May 2024 13:44:49 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DJHcNG3K; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715946289; 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; bh=NbdVrkcPu6NMjll6nGczCulP/jP0yJ5gk6g0IRidyCE=; b=dL4Di1pH3JieSS2qTpmelAAd2M46bYW388c2ZVksKnKPIFaPbgkNIAh/yIljIEaeozXZIs Vg42IbUW+IcX5l0C39NdS0UPpaRM1T5VHjhCnLvoOf/O4UQeSS5DoRKOVsI+YhGe7mGYBR ejNFxSgcS89jL89lfk36TH43s1vgzX8p26lnBxARlUUsQk0aaA45Vm+IYRANLfyQBDMjfd mD0n2yqOLLUjS6G3aZQLzRR2moK90u0zO/A9aUsIYTk4tNFbxwLWsCTud3ZwBtfd1Axohb WKb0iBhsHUeqXCD8zrl0It47YhSR/BeAg0S7jdW1XF7Fv0JjPQfmsP+7UPxXaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DJHcNG3K; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715946289; a=rsa-sha256; cv=none; b=fx4N+dYQ2WtHaP2PPbz1RML4TPMAIG2WQqPKmdqqimRaPBsfPq4uSnx9RPEm58coprY1sW QelTovWEehf4ZUID3xzG/2C4PpYdW505rtNQNxy1fA4oZmyaJhL1KwmbAX433A6sp9Q1MX rhiL9PFy7dYTncKA+U6MltUfPGoB2KScAnla6N9GZx1ZxtoeCP7dwDa7Dqtb0ElC8PUpBp pr7op9pyFlJpoIl448v87g27Ax1v6haU1G9D0/MAfRYvN9pG0LxrFuJSNfL/k9ySP5GeiT k7PAb01sfirPCzLDeCKD1x1/y23RdR2+MAwFLcMb3DLyOebSBdFM1cASOu6QHw== 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 0F70A7BE02 for ; Fri, 17 May 2024 13:44:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7w0M-00041v-5v; Fri, 17 May 2024 07:44:06 -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 1s7w0F-00041h-BI for emacs-orgmode@gnu.org; Fri, 17 May 2024 07:43:59 -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 1s7w0B-0005nO-Vc for emacs-orgmode@gnu.org; Fri, 17 May 2024 07:43:59 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 4B485240027 for ; Fri, 17 May 2024 13:43:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1715946232; bh=Z6oKBPJ42m4ta1l3bgdSFTHT4Vfy2K+UO/Qrpec4ZXc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=DJHcNG3KgV2XK9pqUecqgnsQnIYsG7c9DyCSfIyUzp32kD1sOQJ4dGzimyw1mNcRD X9HCgWtXcbLSCy+TNNzYGIS4AGhzmuE8bAmUtzanxrUVAVqrRXomsOKRzr6rxmYoSf T268fMWOlnV0N3aTGwj9v5vMPB7F3mbjkVcIb26GuYEusGXODo6GpX6xh6oF55UUxr gD8w1K/GkKv+CtUJGuwfMnXP4lrmIlERkF+Q0PtfnK7b67z5pMd5mXR2YQtcfll+9P 73UcTVYGE7bZ4a5xmbzLDxR5EkQ/avHOCbLzjDKEuvSrx9PhPLGGLW3LFniDNvJHWu YWAjOqzLswZgg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VglTz4Z0Jz9rxG; Fri, 17 May 2024 13:43:51 +0200 (CEST) From: Ihor Radchenko To: Raffael Stocker Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Incorrect time calculation in agenda clockcheck In-Reply-To: References: Date: Fri, 17 May 2024 11:45:32 +0000 Message-ID: <87y1888xwj.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.58 X-Migadu-Queue-Id: 0F70A7BE02 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.58 X-TUID: WUNR0myaR5AK Raffael Stocker writes: > in the Org Agenda clockcheck view, a warning about missing end time of a > clocked-in task is displayed together with the already elapsed time of > that task. If the starting time is in the future (this can happen if > rounding and continuous clocking are used), the elapsed time is > incorrect. For example, if a clocked-in task starts in 5 minutes, > clockcheck will report something like "No end time: (0:55)". It would > be more sensible to say "No end time: (-0:05)" or even "No end time: (in > 0:05)". Thanks for reporting! Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3Dee58259bc > The culprit is the use of =E2=80=98org-duration-from-minutes=E2=80=99 in > =E2=80=98org-agenda-show-clocking-issues=E2=80=99, because org-duration a= lways assumes > positive durations and is given a negative one here. The problem can > easily be corrected with something like the following: >... > However, I believe it would be more useful (and general) to use a > similar trick to teach org-duration to work with negative durations. That's what I ended up doing. > ... It would be more sensible to ... or even "No end time: (in 0:05)". I find this confusing, so I left -0:05. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at