From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qCBmFyQDZ2NADAAAbAwnHQ (envelope-from ) for ; Sun, 06 Nov 2022 01:43:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iPt5FiQDZ2OCgAEAG6o9tA (envelope-from ) for ; Sun, 06 Nov 2022 01:43:16 +0100 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 06932E932 for ; Sun, 6 Nov 2022 01:43:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orTjg-0006GM-M2; Sat, 05 Nov 2022 20:42:04 -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 1orTjf-0006GC-2N for emacs-orgmode@gnu.org; Sat, 05 Nov 2022 20:42:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1orTje-0007Wf-NV for emacs-orgmode@gnu.org; Sat, 05 Nov 2022 20:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1orTje-0007jo-Cx for emacs-orgmode@gnu.org; Sat, 05 Nov 2022 20:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#53393: 29.0.50; org mode timestamp C-c C-c not updating day of week Resent-From: Rudolf =?UTF-8?Q?Adamkovi=C4=8D?= Original-Sender: "Debbugs-submit" Resent-CC: emacs-orgmode@gnu.org Resent-Date: Sun, 06 Nov 2022 00:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53393 X-GNU-PR-Package: org-mode X-GNU-PR-Keywords: To: Ihor Radchenko Cc: 53393@debbugs.gnu.org, "Bruce E. Robertson" Received: via spool by 53393-submit@debbugs.gnu.org id=B53393.166769529929715 (code B ref 53393); Sun, 06 Nov 2022 00:42:02 +0000 Received: (at 53393) by debbugs.gnu.org; 6 Nov 2022 00:41:39 +0000 Received: from localhost ([127.0.0.1]:58400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orTjH-0007jC-9J for submit@debbugs.gnu.org; Sat, 05 Nov 2022 20:41:39 -0400 Received: from mr85p00im-zteg06021901.me.com ([17.58.23.194]:48570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orTjD-0007ix-4V for 53393@debbugs.gnu.org; Sat, 05 Nov 2022 20:41:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1667695289; bh=z3oTbmx4GwZnYaxk2ptXgZfwsRqC/laURCc4L2+H1wE=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=QLTlPTsJnMahT1KF9AiZO/KoPlPjkPs7hlQRYl7ZOKsnTCkrt/DsHd9oFu2D9htuB H31qYyUjch0xqEM98FZxfiosteP0yQQK6kzNfzjzc21Dn17gs1yd4HQsI1YlSJ4yAo qYjzIyXCu1jT2PAsXENYAqORX7GzBy5KTBySwHd5IGbgYYhgp1NBJGCZlQBtYR69NE 9v7P+hWz9mAFW2QvkTkJ3mczV44HYL8CatqKq5yRdl2GGu20wFw/eCwjOEFHAb6RRk gGXj6oXcEPs7KuEBslpLlPJXsQSlGWgMs7ZpgAII8MhQpy2PHmVuJxNXVo49qJtPFj 0Rb5b1XdMwWng== Received: from Rudolfs-MacBook-Air.local (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-zteg06021901.me.com (Postfix) with ESMTPSA id 664427405EF; Sun, 6 Nov 2022 00:41:28 +0000 (UTC) In-Reply-To: <875yfv5p00.fsf@localhost> References: <87pme7hzx8.fsf@localhost> <875yfv5p00.fsf@localhost> Date: Sun, 06 Nov 2022 01:41:25 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Proofpoint-GUID: lyaf0YDpGBTt24K8XrlCemrdk2Z6LCvi X-Proofpoint-ORIG-GUID: lyaf0YDpGBTt24K8XrlCemrdk2Z6LCvi X-Proofpoint-Virus-Version: vendor=fsecure engine=1.1.170-22c6f66c430a71ce266a39bfe25bc2903e8d5c8f:6.0.425, 18.0.572, 17.11.62.513.0000000 definitions=2022-01-14_01:2022-01-14_01, 2020-02-14_11, 2021-12-02_01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 mlxlogscore=841 phishscore=0 malwarescore=0 clxscore=1011 adultscore=0 bulkscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2211060005 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: emacs-orgmode@gnu.org List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Reply-to: Rudolf =?UTF-8?Q?Adamkovi=C4=8D?= From: Rudolf =?UTF-8?Q?Adamkovi=C4=8D?= via "General discussions about Org-mode." Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667695396; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=CRliBl9T3UHSG3bcHG0f03mYO8rvYBF/OBVFx+uHV6w=; b=gLXso1j2vAyIHh811SuVfkPmIpdpGFKIi+EYEsfjhBVXi5fI5tlFvue/yifUj6VQE25f2j +3unW4fJa5a1ahkyEBlCkkwTEz8NzsOeeikelrtLy+dOyukgB0Lzm3SA1lXlj+ySo2/9Qz 0Yzl6HcjaC6ts0YZiDXtohUPvukDPHrnHR8gqFYddgSD9aLS7u/gwiHOLM1l/OfwnTeNP6 rJ6VTvvm7GbrUc/pZQpFMc1HApyuZhU1wN4VL7+XfUFL90kqkspr9n6HwWXVyiddzC4/sJ bW5H/ECpVHenwnC5rawgwl9VmryCnei1zQhcZVEQfZZY1OTN/JdDceEjEa4KNA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667695396; a=rsa-sha256; cv=none; b=sbrQmAYb0fgefZNFahFYP7ZkAqso9t7WOvEsoZKuPobx1SJayvdNFE7DU3JqOESqFLfc+c voZz5IwdNmf13h3mbdWDTNuwy1I6GEKlq4EnMZO8gFRejlu5MnDRWeVdabsadePF4rVkvx qR5rLjWoftNKVUifgfZFx9dlbp5MJR+hHmwoTwuNQuOTxMqntHW0eGFqKtlji8JHvxGWWz ngwxQwRhhLSQB2IPy5C/xoqlHGiJ3sVuBEMS2m1BniTSOtawbn0TXDaFNx1eqln4fBfOZY yg3h92KVLul+56pFv3HKWWamBh/KXOzYqUr6nLBE/lDrwTeSWMcsSrakjT4N8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=me.com header.s=1a1hai header.b=QLTlPTsJ; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -2.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=me.com header.s=1a1hai header.b=QLTlPTsJ; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 06932E932 X-Spam-Score: -2.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: uxqNzS7hJFE3 --=-=-= Content-Type: text/plain Ihor Radchenko writes: > Let's not use 00:00 times. This may fail the test in some unusual time > zones. Changed to 06:00. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-test-org-clock-Test-DWIM-update-of-days.patch >From e39e3fa3e58963e7ef15258ed267fa9ed0de936b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= Date: Thu, 3 Nov 2022 22:47:44 +0100 Subject: [PATCH] test-org-clock: Test DWIM update of days * testing/listp/test-org-clock (test-org-clock/clock-drawer-dwim): Add new test for DWIM updates of days for clocks in logbook drawers. Reported-by: Bruce E. Robertson Link: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=53393 --- testing/lisp/test-org-clock.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/testing/lisp/test-org-clock.el b/testing/lisp/test-org-clock.el index f992c8d7a..68286b174 100644 --- a/testing/lisp/test-org-clock.el +++ b/testing/lisp/test-org-clock.el @@ -273,6 +273,22 @@ the buffer." (org-log-into-drawer nil)) (org-clock-drawer-name)))))) +(ert-deftest test-org-clock/clock-drawer-dwim () + "Test DWIM update of days for clocks in logbook drawers." + (should (equal "* Foo +:LOGBOOK: +CLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] => 0:01 +:END: +" + (org-test-with-temp-text + "* Foo +:LOGBOOK: +CLOCK: [2022-11-03 ??? 06:00]--[2022-11-03 ??? 06:01] => 0:01 +:END: +" + (org-ctrl-c-ctrl-c) + (buffer-string))))) + ;;; Clocktable -- 2.38.1 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 "Simplicity is complexity resolved." -- Constantin Br=C3=A2ncu=C8=99i, 1876-1957 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia --=-=-=--