From: "Rudolf Adamkovič via General discussions about Org-mode." <emacs-orgmode@gnu.org>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: 53393@debbugs.gnu.org, "Bruce E. Robertson" <brucer42@gmail.com>
Subject: bug#53393: 29.0.50; org mode timestamp C-c C-c not updating day of week
Date: Sun, 06 Nov 2022 01:41:25 +0100 [thread overview]
Message-ID: <m2bkpksymi.fsf@me.com> (raw)
In-Reply-To: <875yfv5p00.fsf@localhost>
[-- Attachment #1: Type: text/plain, Size: 148 bytes --]
Ihor Radchenko <yantar92@posteo.net> writes:
> Let's not use 00:00 times. This may fail the test in some unusual time
> zones.
Changed to 06:00.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-test-org-clock-Test-DWIM-update-of-days.patch --]
[-- Type: text/x-patch, Size: 1346 bytes --]
From e39e3fa3e58963e7ef15258ed267fa9ed0de936b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= <salutis@me.com>
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 <brucer42@gmail.com>
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:
+<point>CLOCK: [2022-11-03 ??? 06:00]--[2022-11-03 ??? 06:01] => 0:01
+:END:
+"
+ (org-ctrl-c-ctrl-c)
+ (buffer-string)))))
+
\f
;;; Clocktable
--
2.38.1
[-- Attachment #3: Type: text/plain, Size: 174 bytes --]
--
"Simplicity is complexity resolved."
-- Constantin Brâncuși, 1876-1957
Rudolf Adamkovič <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia
next prev parent reply other threads:[~2022-11-06 0:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m2v8yg7uxl.fsf@gmail.com>
2022-01-21 1:35 ` bug#53393: 29.0.50; org mode timestamp C-c C-c not updating day of week Kyle Meyer
2022-01-21 2:07 ` bruce robertson
2022-01-22 12:22 ` Peter Davis
2022-01-23 3:33 ` Ihor Radchenko
2022-01-21 7:13 ` Eli Zaretskii
2022-01-26 5:12 ` bruce robertson
2022-11-01 7:55 ` Ihor Radchenko
2022-11-01 16:32 ` bruce robertson
2022-11-03 21:52 ` Rudolf Adamkovič via General discussions about Org-mode.
2022-11-04 4:21 ` Ihor Radchenko
2022-11-06 0:41 ` Rudolf Adamkovič via General discussions about Org-mode. [this message]
2022-11-06 3:40 ` Ihor Radchenko
[not found] <mailman.67.1642784492.19950.emacs-orgmode@gnu.org>
2022-01-22 5:21 ` No Wayman
2022-01-22 5:45 ` No Wayman
2022-10-11 7:57 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2bkpksymi.fsf@me.com \
--to=emacs-orgmode@gnu.org \
--cc=53393@debbugs.gnu.org \
--cc=brucer42@gmail.com \
--cc=salutis@me.com \
--cc=yantar92@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).