From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id SAYrIldfR2bg/gAAqHPOHw:P1 (envelope-from ) for ; Fri, 17 May 2024 15:44:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id SAYrIldfR2bg/gAAqHPOHw (envelope-from ) for ; Fri, 17 May 2024 15:44:55 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715953495; 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:autocrypt:autocrypt; bh=ZvbqCIvjH009J6y5RzT1wngiS1THZadcIvyrXltr50I=; b=rGMRjCeRb4sB5ZTVMa0MZL/P7XqwYJbsJ+OxlEb0tU3/wTTe2chlmjdyOxod7WxbbyGpHU l9/9udyNFlVA7sJvx5Lo1BliEe4X+Md8Dq1XlYJMvOv7NQ5vVHV/Ojaccx3cxW+pXIF1Xv OyWygRM9k2l9+FjoAQvCl3aKpfGidyQKNIErMgumZ+tv7ozxeZ6fryjYaAEXa2By/R63fY msI6ctUiK7ewQRyl/HjRSVOlc1XCpyGKGaOiTUpFATryFZcHnBVBxquhsK3f4pqeyPURXY rkCwbbWmugI8c+ItaUIK1zVrRlRRb7t4WuGTYPWmrZeDiYePHrUukxWRHhwoOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715953495; a=rsa-sha256; cv=none; b=G/5Y8LPV06o9Q//bCa5dTiAH8VhHFIv5UeuiSSySvUU3bk0YLYfO9prq3xe4WJzgZFI78q QmADresodWehSw9C6caNCbVnKroIM5f3kGc2/FGZVnIjYxLNoB2ClETfCgY9GW16CRWeHs Tz+GzELVNYYmnPMoQpkU5exn2/2HcvsZsvRkf/QyYSpQY3LoxKWqmALlHY1y5LYQZcu5XW BhhIJLE7W2pzY9vMriCqVOTRqZUnripwnuJPDqIZqjM6sN6zRxzobN1E7Sf0lsRoHz/grM Viu/ryYp6EvS/mW7V4jTG3QulStqwtRaEP+weeCfU1r4J9k08LOxGFOz8PUYAw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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" 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 2A1F6C55 for ; Fri, 17 May 2024 15:44:55 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7xsY-0006Vf-JY; Fri, 17 May 2024 09:44:10 -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 1s7xsV-0006V3-HK for emacs-orgmode@gnu.org; Fri, 17 May 2024 09:44:07 -0400 Received: from mail-out.m-online.net ([212.18.0.9]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7xsT-00068J-9K for emacs-orgmode@gnu.org; Fri, 17 May 2024 09:44:07 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Vgp8b1kKyz1r4JG; Fri, 17 May 2024 15:43:59 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4Vgp8b0j8zz1qqlS; Fri, 17 May 2024 15:43:59 +0200 (CEST) X-Virus-Scanned: amavis at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024) with ESMTP id 4ZA67JuMrgvw; Fri, 17 May 2024 15:43:57 +0200 (CEST) X-Auth-Info: IvUgxpI9trt++FBOU+A6QEXPT98y4w0KTt1NVENYK+6iVTxZhzm/xEaelHN1LO1p Received: from [127.0.0.1] (p5097efba.dip0.t-ipconnect.de [80.151.239.186]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 17 May 2024 15:43:56 +0200 (CEST) Date: Fri, 17 May 2024 13:43:56 +0000 From: Mnet-Mail To: Ihor Radchenko CC: emacs-orgmode@gnu.org Subject: Re: [BUG] Incorrect time calculation in agenda clockcheck In-Reply-To: <87y1888xwj.fsf@localhost> References: <87y1888xwj.fsf@localhost> Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----4D1189VDDP47ZW6ATQ7SKR1RXLHN90 Content-Transfer-Encoding: 7bit Autocrypt: addr=r.stocker@mnet-mail.de; keydata= mQINBFuFNsYBEADciEdsSRgHO1Hb4dePGQiCoLpBy//7yVo+C5/ICrNvwXsYRMryK5xHL/KHBTyR CnIdeBxvbM6zmoPyE3lZIPl16DW8FPklTSd5oeOEf8SOiAF4vp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kQc9KDk/8e0EQWIQQEP1ff47gfPTLJ6W1z0oOT /x7QRDlLEACN2jexIyzUxW4V325PlFr1r75O6D5CaQANlsHoXX5nxskkcI987K+tucu/QLbi8uPH jkhcLwAmfcl1O1okuYpqKFkPPRIJNKEnfnN+JzCpCZcg7JlEb8KNuuLzs7S2uitB5CQQU3+Uht5/ MYqeoO3S9wVfsip5VIqJLVdJgCcq1LuBMZIBm1H/sWzgZrpTEb30BJhRUe5vu0mohPsYXQEKdKVH o7TNIfgSEUchhApMV61MEWrHKbddcp/QSJQybk2amzpuMCUoETrObI3uFazpWDpd7MpmKUcjWdiq tXzJjpfFUu2bmvV1rFIRFVIuYTFd0fB/m6krh1pPiKcExQWcdlQsitr63YWDcoqLDhnxJjXLF5WY ByhHfldp+PKgYlY171AhFVxtYTROSbcJPF32P2G/OWzHjESwZLDt8nIxPXKiMbXj95tjBONyMNrj H6Ou8PPqmDWIHAPpPEQE1hNPHKemTmVW5oPW5OOtb3DCdEJQtkU6gGYo7tsJEMDMDtY5gxzyFZFC rwB31LSYropCNR7DGZQBpxoM57xFPHuxCF/rRT1YPFKH2iwvcJtthbiEXYth1YYV9/sknsjdPA+5 sNUlx80YoWRoyjwC4YmBS2tNXIIEuJKhzedHTrEtCKWslZ1BS6AYt4myHRf4pxXGiY+dZKX27DAu V4s8X9mEdA== Received-SPF: pass client-ip=212.18.0.9; envelope-from=r.stocker@mnet-mail.de; helo=mail-out.m-online.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.47 X-Spam-Score: -2.47 X-Migadu-Queue-Id: 2A1F6C55 X-Migadu-Scanner: mx11.migadu.com X-TUID: 6CKiJh3sZJSO ------4D1189VDDP47ZW6ATQ7SKR1RXLHN90 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks! Am 17=2E Mai 2024 11:45:32 UTC schrieb Ihor Radchenko : >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=2E If the starting time is in the future (this can happen if >> rounding and continuous clocking are used), the elapsed time is >> incorrect=2E For example, if a clocked-in task starts in 5 minutes, >> clockcheck will report something like "No end time: (0:55)"=2E It woul= d >> be more sensible to say "No end time: (-0:05)" or even "No end time: (i= n >> 0:05)"=2E > >Thanks for reporting! >Fixed, on main=2E >https://git=2Esavannah=2Egnu=2Eorg/cgit/emacs/org-mode=2Egit/commit/?id= =3Dee58259bc > >> The culprit is the use of =E2=80=98org-duration-from-minutes=E2=80=99 i= n >> =E2=80=98org-agenda-show-clocking-issues=E2=80=99, because org-duration= always assumes >> positive durations and is given a negative one here=2E The problem can >> easily be corrected with something like the following: >>=2E=2E=2E >> However, I believe it would be more useful (and general) to use a >> similar trick to teach org-duration to work with negative durations=2E > >That's what I ended up doing=2E > >> =2E=2E=2E It would be more sensible to =2E=2E=2E or even "No end time: = (in 0:05)"=2E > >I find this confusing, so I left -0:05=2E > >--=20 >Ihor Radchenko // yantar92, >Org mode contributor, >Learn more about Org mode at =2E >Support Org development at , >or support my work at ------4D1189VDDP47ZW6ATQ7SKR1RXLHN90 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Thanks!


Am 17=2E Mai 2024 11:45:32 UTC schrieb I= hor Radchenko <yantar92@posteo=2Enet>:
Raffael Stocker <r=2Estocker@mn= et-mail=2Ede> writes:

in the Org Agenda clockcheck view, a warning = about missing end time of a
clocked-in task is displayed together with t= he already elapsed time of
that task=2E If the starting time is in the = future (this can happen if
rounding and continuous clocking are used), t= he elapsed time is
incorrect=2E For example, if a clocked-in task start= s in 5 minutes,
clockcheck will report something like "No end time: (0:5= 5)"=2E It would
be more sensible to say "No end time: (-0:05)" or even = "No end time: (in
0:05)"=2E
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 or= g-duration always assumes
positive durations and is given a negative on= e here=2E The problem can
easily be corrected with something like the = following:
=2E=2E=2E
However, I believe it would be more useful (and= general) to use a
similar trick to teach org-duration to work with neg= ative durations=2E

That's what = I ended up doing=2E

=2E=2E=2E It would be more sensible to =2E=2E=2E o= r even "No end time: (in 0:05)"=2E
=
I find this confusing, so I left -0:05=2E

------4D1189VDDP47ZW6ATQ7SKR1RXLHN90--