From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eNGZMCvBfmD6sAAAgWs5BA (envelope-from ) for ; Tue, 20 Apr 2021 13:55:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UIQ7LCvBfmA4dgAAbx9fmQ (envelope-from ) for ; Tue, 20 Apr 2021 11:55: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 4B01C1B339 for ; Tue, 20 Apr 2021 13:55:22 +0200 (CEST) Received: from localhost ([::1]:38782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYoyO-00046r-CM for larch@yhetil.org; Tue, 20 Apr 2021 07:55:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYnfE-0003WF-Io for emacs-orgmode@gnu.org; Tue, 20 Apr 2021 06:31:28 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:45789) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYnfB-0000ju-Vn for emacs-orgmode@gnu.org; Tue, 20 Apr 2021 06:31:28 -0400 Received: by mail-pj1-x102a.google.com with SMTP id nm3-20020a17090b19c3b029014e1bbf6c60so16006381pjb.4 for ; Tue, 20 Apr 2021 03:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gapp-nthu-edu-tw.20150623.gappssmtp.com; s=20150623; h=from:subject:to:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=ULvQoVk+6vYE3QkHFHlFcxHS8y98OD1L6yzFwhtWbdg=; b=o3LWisjC+9+urdpFUElIh3tOPoTYle+MYv9ikj5kIT7eHmujZU3Vz5D65Y8cdYhAeD QfjUjpGJ1wtt3VKs9In+w+Z1vn/NamfNc8tp6mbfeHeN6ZqGXuchPFPfZBbd5ped//j6 ROOaI96RGt/KG7u9gQdEicMWCIwbF2oD26zc/HemfltHuXbcDMA96bmWGI972bIF/XjE zImgL3p3thXgUSFyPBGNotTF2XBUn6tg1agAjrtnmVUM/uwtHEmYJl36t2s+Dd6FZJmb 0tw0rKw1zaDm94XDlu0NrkiOAiR3JMXL+Q8Yxvw3+ru2pf4CcupU05OKtNMr5fFUpx79 n+TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=ULvQoVk+6vYE3QkHFHlFcxHS8y98OD1L6yzFwhtWbdg=; b=TdWLyaXkcRpAEQ8UnR07eox57PBzq5SV6JvnEwr02Upl1VG7wFXbSIjl+3NvNSQpli Zpnd77YM2Mk3soJxrO0gom3PhIzqHIh9Q1yBb1bd3/tU+zpdGQ+h5hXeiArYZR5LJ4F1 MZK9DJJMYAIsth9gBgbY0dZVryrAW1QAhTqk7rbDky1o11xtYfk4VIZFZZniZynHsUMj VyfeIFWNddg4aQ88PtOJG5tl8YrbDuZlGuoG32XfWB8CWvqQ8iwcq95/WUcFGoJow52/ jsm2D2zIHcBXAhQ91NJH+kARi6OWsHvR2qPGXziW5gantpyqyW6Yh44rVP78BAvz/GAB S1gQ== X-Gm-Message-State: AOAM532OLXV89uxawu0GVanNdGZ05MrWPnBpL5JLEjF38xDgNEoyisTu JCDiywQ473d+oQ+n6uXG7zMRtA== X-Google-Smtp-Source: ABdhPJzXnpLKUebPAZfN7X+pEWVcaF8vJF18mEytaSspVTDvIHhqA22RX7o6hkAXHKwVTAaTJxcg0A== X-Received: by 2002:a17:90b:2355:: with SMTP id ms21mr4205036pjb.226.1618914681409; Tue, 20 Apr 2021 03:31:21 -0700 (PDT) Received: from [172.21.145.92] (v385-gateway.cs.nthu.edu.tw. [140.114.87.235]) by smtp.gmail.com with ESMTPSA id q63sm2216844pjq.17.2021.04.20.03.31.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Apr 2021 03:31:20 -0700 (PDT) From: Johnson Subject: Bug: Incorrect duration format example in comments in 'org-duration.el' [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)] To: emacs-orgmode@gnu.org Message-ID: <6b6f566d-eb3d-2430-02e3-ee1eda56d7d1@gapp.nthu.edu.tw> Date: Tue, 20 Apr 2021 18:31:19 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=j3soon@gapp.nthu.edu.tw; helo=mail-pj1-x102a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 20 Apr 2021 07:54:39 -0400 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=1618919722; 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=ULvQoVk+6vYE3QkHFHlFcxHS8y98OD1L6yzFwhtWbdg=; b=BOKKlKAq0pUsBazsWye2sAbn4mSQIewHGNeulhyn2gWvJVsbXDEFq7l5hXMXKufZEFUz5t 9SGG7Lrqd54A7SJvoDq0WQGA/t7JKkQJ7imct0JUJabcWDKk7MSiX0WLtxYonpPwpKPck8 lvE9SoiF0Nd281pUNC/ZDgqkDEo2sGatZoo7i5KCbm1qXY716TZKGriExyBhFnocgzjfn9 5LiduRV8sWTl/5g/ZPpWa8LCiJCHUUpf2lOGDIEvTua7RZzHWJ8K47D8yk3CzMDkoFUzYd NGm7+LIKr8ZrqMMIbWkzCPrxCFmhtKg21IF3WBmk+JdV5/xJC2FbhG+vLKudyw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618919722; a=rsa-sha256; cv=none; b=amh21WKs3gyuYcrjTgLdD73rd7u6C8gpAMtBF/w62hEUkqcsP5zFUolTclFr9avcxro+bR iya87VftmNfP0mRRkdw0MGvilC7AT6qinps9kW5GMHuC3bXsTsz4dn1fMnMqqtuW5EEH04 PPN3Bn1IWfqyY+KasmuKvpFpQgF72PW1qz2iTfiX6E6/rm4yG04UWNUjJv6Ughak+SpInR EwqVftc34uhuOFQXkZIhCFy1KpOlvwvu3eLlSnSKFvEqYiQ1hvdKwFP9UJ5rB69SmYu08g Ce5cNV2evRPI98zkfSbTRKr0szQBy3F3nsyk3okIod6YJaD8PEx5pIr+rEwyMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gapp-nthu-edu-tw.20150623.gappssmtp.com header.s=20150623 header.b=o3LWisjC; 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.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gapp-nthu-edu-tw.20150623.gappssmtp.com header.s=20150623 header.b=o3LWisjC; 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: 4B01C1B339 X-Spam-Score: -2.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZWJ3OgUFZqQu I'm contributing to an org file python parser to correctly parse durations. I found the comments in org-duration.el (https://code.orgmode.org/bzg/org-mode/src/master/lisp/org-duration.el#L31 ), mentioning that `1d3h5min` is a valid duration format. So, I expect the following should work: M-x eval-expression (org-duration-string-to-minutes "1d3h5min") However, the following error occurred: (error "Invalid duration format: \"1d3h5min\"") I also tried adding "1d3h5min" as an EFFORT property, however, resulting in the same error. I assume that the comment should be fixed by removing this particular example? (Other examples work fine) -- Sincerely, Johnson