From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oBwXInc4ZGMP5QAAbAwnHQ (envelope-from ) for ; Thu, 03 Nov 2022 22:53:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gCgOIXc4ZGN4JgEAG6o9tA (envelope-from ) for ; Thu, 03 Nov 2022 22:53:59 +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 1DFAB17DCE for ; Thu, 3 Nov 2022 22:53:58 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqi92-00059P-40; Thu, 03 Nov 2022 17:53: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 1oqi90-00059G-09 for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 17:53:02 -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 1oqi8z-00021X-OR for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 17:53:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqi8z-0000MO-Jk for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 17:53:01 -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: Thu, 03 Nov 2022 21:53:01 +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 , "Bruce E. Robertson" Cc: 53393@debbugs.gnu.org Received: via spool by 53393-submit@debbugs.gnu.org id=B53393.16675123601355 (code B ref 53393); Thu, 03 Nov 2022 21:53:01 +0000 Received: (at 53393) by debbugs.gnu.org; 3 Nov 2022 21:52:40 +0000 Received: from localhost ([127.0.0.1]:50950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqi8e-0000Ln-Fd for submit@debbugs.gnu.org; Thu, 03 Nov 2022 17:52:40 -0400 Received: from st43p00im-ztdg10071801.me.com ([17.58.63.171]:52524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqi8c-0000LX-Bp for 53393@debbugs.gnu.org; Thu, 03 Nov 2022 17:52:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1667512352; bh=Pwn0TNtW8aTeACRsbJn/X5VG+wAD8fTtm4PBQt/m9yo=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=n/106/0d1TIw+iAwzQZfK6i8yjrmm2gCoARKWHIGW1nY8nCalhgKfQnb/e2toYl0r jlVax1YZ7lqogPHipHFJnywqWzAH49NDXZpjPTw62AVx6ONv60U7R518h0QdSnv94I ouK6KNs2jpuEAFI6sOYHotv/5D+4TrdXkXlNT5bGXjLjDIKSKjSdjwzAyaMbATcQNK QB1LoEtcG1fMnRuePHBmoSM/I6lIIKcdE+Z+8yGA0YZnHOb+x1d9rvBoKkIAUORHmP cdGjFcIAbEr9TyyhCUWQ6JlNAgChXCk22dkf+lzMAxNhWGNrRHfP5MkC64Wi8j+YG/ kRXbbXedIsGUQ== Received: from Rudolfs-MacBook-Air.local (st43p00im-dlb-asmtp-mailmevip.me.com [17.42.251.41]) by st43p00im-ztdg10071801.me.com (Postfix) with ESMTPSA id E40353C07A4; Thu, 3 Nov 2022 21:52:31 +0000 (UTC) In-Reply-To: <87pme7hzx8.fsf@localhost> References: <87pme7hzx8.fsf@localhost> Date: Thu, 03 Nov 2022 22:52:29 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Proofpoint-GUID: rBg5YJWXfa8P_lBuapg7wHKl_AoUiOXG X-Proofpoint-ORIG-GUID: rBg5YJWXfa8P_lBuapg7wHKl_AoUiOXG 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 adultscore=0 bulkscore=0 spamscore=0 phishscore=0 suspectscore=0 clxscore=1011 mlxlogscore=871 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2211030150 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=1667512439; 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=s8ARn/Dpu5XG/p6D4qM/6sYkelx/KhfGO2EYC445Cms=; b=XpB5E9IYi4OXPgs0VmLeMXrRswPJsrctMJOikA0WtTi+xtza17PGoZDPngTgP0VNVsilMt 27WDKGdFBe1saJBnR1uOoBEwh3nkMK9GJIzYBl3opRTxAOyQ67q3b6jRBq/57tpBTnKxdV hdVCySbYJ4AcnlltaiKCj5dNlENclctQooFYmCL6H93Q7R3vWOaULRt4MJcGgeHMBrMmNr wMh3UNNb2Szw257wwdWVlCONWwQ6b/k9lCkZmoXNDM0akxEQ1tv7RRVGXNc+BR2e5wZJnz kPwNfH/6zqlJA7aPcwFsHLUvWMhvqh4yuzjfNQnQRAvdSGrFFcB5YZw4BoGGfg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667512439; a=rsa-sha256; cv=none; b=J/jmIk8cAHWOlHqj6qySCT1EV5GC3YDAHNuDSl9bEYPWrP6q9NX04KT0V3Zxptkp1h9i6w v99ZCRltUZAw/P8BeCFC6+TKPdeAJZoVpRcW2i+fzfafYeH8yC5MtDOcEdXkS5Pi2crJ+m ssRNB/8NYVLAbf1pf9ckfgkhiAITiQoDxywUaaPI73yi/oihLqWiiHaphefsY232pA5p8q 5eCVaUdWyY97FEH62RYJowozQj92QJD55yRifPp0T1rFTPozy1HyaOlk02rzO5ykso7aGC qO5UtOCMj8125otLOB+qpc92S4rjEmmOkkwBC05Md0ebCPd1r10cw23YYlLCBA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=me.com header.s=1a1hai header.b="n/106/0d"; 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.59 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=me.com header.s=1a1hai header.b="n/106/0d"; 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: 1DFAB17DCE X-Spam-Score: -2.59 X-Migadu-Scanner: scn0.migadu.com X-TUID: FaKAzkNjQvvn --=-=-= Content-Type: text/plain Ihor Radchenko writes: >> recently did update the day of the week but no long does > Fixed on main. Please see the attached patch with a regression test. Rudy --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-test-org-clock-Test-DWIM-update-of-days.patch >From 51f1ee245a99e30402d7fd2d069d3e223ad5c15d 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..4798c42b7 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 00:00]--[2022-11-03 Thu 00:01] => 0:01 +:END: +" + (org-test-with-temp-text + "* Foo +:LOGBOOK: +CLOCK: [2022-11-03 ??? 00:00]--[2022-11-03 ??? 00: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 "Thinking is a momentary dismissal of irrelevancies." -- Richard Buckminster Fuller, 1969 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia --=-=-=--