emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Rudolf Adamkovič via General discussions about Org-mode." <emacs-orgmode@gnu.org>
To: Ihor Radchenko <yantar92@posteo.net>,
	"Bruce E. Robertson" <brucer42@gmail.com>
Cc: 53393@debbugs.gnu.org
Subject: bug#53393: 29.0.50; org mode timestamp C-c C-c not updating day of week
Date: Thu, 03 Nov 2022 22:52:29 +0100	[thread overview]
Message-ID: <m2k04bg0yq.fsf@me.com> (raw)
In-Reply-To: <87pme7hzx8.fsf@localhost>

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

Ihor Radchenko <yantar92@posteo.net> 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


[-- 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 51f1ee245a99e30402d7fd2d069d3e223ad5c15d 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..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:
+<point>CLOCK: [2022-11-03 ??? 00:00]--[2022-11-03 ??? 00:01] =>  0:01
+:END:
+"
+           (org-ctrl-c-ctrl-c)
+           (buffer-string)))))
+
 \f
 ;;; Clocktable
 
-- 
2.38.1


[-- Attachment #3: Type: text/plain, Size: 191 bytes --]

-- 
"Thinking is a momentary dismissal of irrelevancies."
-- Richard Buckminster Fuller, 1969

Rudolf Adamkovič <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia

  parent reply	other threads:[~2022-11-03 21:53 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. [this message]
2022-11-04  4:21     ` Ihor Radchenko
2022-11-06  0:41       ` Rudolf Adamkovič via General discussions about Org-mode.
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=m2k04bg0yq.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).