From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6IqYF6jDpmCpfAEAgWs5BA (envelope-from ) for ; Thu, 20 May 2021 22:16:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iIdLE6jDpmCpPgAA1q6Kng (envelope-from ) for ; Thu, 20 May 2021 20:16:40 +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 BE9D424CA3 for ; Thu, 20 May 2021 22:16:39 +0200 (CEST) Received: from localhost ([::1]:52656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljp5y-0002Sf-52 for larch@yhetil.org; Thu, 20 May 2021 16:16:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljp50-0002HO-Jo for emacs-orgmode@gnu.org; Thu, 20 May 2021 16:15:38 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:50569) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljp4x-0006iP-Tw for emacs-orgmode@gnu.org; Thu, 20 May 2021 16:15:38 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 93EA1C0008; Thu, 20 May 2021 20:15:32 +0000 (UTC) From: Nicolas Goaziou To: Axel Kielhorn Subject: Re: Updating column view dynamic block does not work with {est+} References: <20DC75FD-5757-4F9C-8AD1-3B64FE4ECF3C@axelkielhorn.de> <877djt1e4b.fsf@nicolasgoaziou.fr> <07BFE527-63BA-4B2E-8891-D668F8C4D93F@axelkielhorn.de> Mail-Followup-To: Axel Kielhorn , Org-Mode Mailing List Date: Thu, 20 May 2021 22:15:32 +0200 In-Reply-To: <07BFE527-63BA-4B2E-8891-D668F8C4D93F@axelkielhorn.de> (Axel Kielhorn's message of "Thu, 20 May 2021 21:10:42 +0200") Message-ID: <87cztlyxej.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.183.198; envelope-from=mail@nicolasgoaziou.fr; helo=relay6-d.mail.gandi.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, RCVD_IN_DNSWL_LOW=-0.7, 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: , Cc: Org-Mode Mailing List 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=1621541800; 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; bh=QWBXIj4TogzkuPexr6sRynqTCI+nXWPCk927qT1dodc=; b=acRFM65fNl3IM/qLUUNl2Z2KUJrizNolNbIFqRbr8AVuHTrE49m8Ox3qRS1hQx1zqaJuTO SSpWkCBZCE1Vl/MMqEwaAdm3gGZd29iTUUXpdIyIV5C7M0lD1zubBVxSQ01Y7t2KTnxoN6 A2MWkbyG9YfNZiCO/2rf2+/heBGcoLdEr87YG1nHgRb3YV6lidLP1XsuNpwqNhYHZomc/C +wGT9Bk3EijDO0rnx9522KOfLX6LG88afh69rNL/PKdUIVUWttxvxR7aNJl3DhhtlXIXfR ltCB4xFXYxLStJzG2RdrJZabVJXH9m7AfAUrXuF+kf9BkGwNyh1NJWjoeKQpsg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621541800; a=rsa-sha256; cv=none; b=c6GmElmh6gCKebUMsuve+OsyNHQABOTJ6jPmQnZXCSoIomKAShxesGc1GD6IsyQtfs9iCk oEN5Bwice0Fb4uGv1Q6jceiaAk8M/4Zn3vasoksMVvndHu/E55yJLjfzqY1vvQKKdwyPfw PWsablpTiC1kwQ8t4dBOOApfKaJMHBTt+NTVZ8Ebtt0ayWPuxA/0an37F5MjPvJ5CWSKq0 IDSbJXop95YaVhDQ+cZcHFnuC+Zh4segYuyTnqh6UZdlQlvx5Odnm9Dc7M6COJDIE1K8Jk vXRYKyJT+CfG5uUQTkCaKDTe+YU3ihq2APXA8GL9vaZt+YrV82GiTDAwJyIL5w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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.44 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: BE9D424CA3 X-Spam-Score: -2.44 X-Migadu-Scanner: scn1.migadu.com X-TUID: p4dwUHGUdZjQ Axel Kielhorn writes: >> Am 20.05.2021 um 19:58 schrieb Nicolas Goaziou : >>=20 >> Org Duration is strict about what it is fed with (which is good). Effort >> property expects a duration as value. But "3-8" is not a valid duration. >> However, "3" is a valid duration; it means 3 minutes. > > The problem is that effort can either be a duration and in that case the = strict duration library ist fine. > Or it can be a range (of days). No, it means minutes. However, units do not matter in "est+". You can interpret the result in days if it matters. > 3:30 is fine when : is used to add the times > 3.0 - 4.0 is a range estimate when est+ is used > 3:00 - 4:00 is only correct by chance, 3:30 - 4:30 will lead to the > same result since est+ does not handle durations. This is what I'm suggesting, isn't it? > Splitting it into 2 properties (effort and effort_range) is even worse > since it will be inconsistent after a few edits. This is _not_ what I'm suggesting. > It gets even more interesting when on task has 3-4 (implicit) days, while= another has 8:00 (implicit) hours. > (Are 8 h one work day, or are 24 h one calendar day?) Org Duration library is able to distinguish canonical from user-provided units (see last argument in `org-duration-to-minutes). Actually, Org Colview makes this distinction by calling "canonical" duration an "age" (see "@min" and other operators). There could be est+ and est-age+ (or anything else, really). >> Maybe Effort property should simply accept a duration or a duration >> range. > > That=E2=80=99s what I first thought it would do, since a duration is a ti= me (8:00 for 8h). > The question is how to resolve ambiguity? I don't see any ambiguity. est+ can be changed to accept 2d-3d. > 1.0 is one day No, it's one minute. 1.0d is one day. > 1:00 is one hour > 1 is one minute, really? yes, that is the default for the duration > library. But it used to mean one day??? A long time ago, yes, but that was inconsistent. > Maybe a new est: function to work with durations and the old est+ functio= n to work with numbers=20 > (which could mean days, but it could mean ms as well)? And a warning abou= t inconsistent units. I don't think this is needed. The current est+ is not working anyway. > What happens when I use a range in a clock table? Who knows? :) > But since the feature is advertised it would be great if it works. There's no reason it cannot work. It just needs some love. Regards,