From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eISBCY0O6mFRAQEAgWs5BA (envelope-from ) for ; Fri, 21 Jan 2022 02:38:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ILEiAo0O6mFZJQEAG6o9tA (envelope-from ) for ; Fri, 21 Jan 2022 02:38:21 +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 8160811588 for ; Fri, 21 Jan 2022 02:38:20 +0100 (CET) Received: from localhost ([::1]:39448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nAisb-0001Pa-8J for larch@yhetil.org; Thu, 20 Jan 2022 20:38:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAiqR-0001Li-5N for emacs-orgmode@gnu.org; Thu, 20 Jan 2022 20:36:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38597) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nAiqQ-0003ib-LC for emacs-orgmode@gnu.org; Thu, 20 Jan 2022 20:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nAiqQ-0001Eq-Dj for emacs-orgmode@gnu.org; Thu, 20 Jan 2022 20:36:02 -0500 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: Kyle Meyer Original-Sender: "Debbugs-submit" Resent-CC: emacs-orgmode@gnu.org Resent-Date: Fri, 21 Jan 2022 01:36: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: "Bruce E. Robertson" Received: via spool by 53393-submit@debbugs.gnu.org id=B53393.16427289134696 (code B ref 53393); Fri, 21 Jan 2022 01:36:02 +0000 Received: (at 53393) by debbugs.gnu.org; 21 Jan 2022 01:35:13 +0000 Received: from localhost ([127.0.0.1]:59733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAipd-0001Dg-78 for submit@debbugs.gnu.org; Thu, 20 Jan 2022 20:35:13 -0500 Received: from out2.migadu.com ([188.165.223.204]:12902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAipb-0001DV-1n for 53393@debbugs.gnu.org; Thu, 20 Jan 2022 20:35:12 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1642728909; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tUV6j0JzyVOMr7Wi11YZSpJObKEE5ibCyiWQs0kA+g4=; b=t2eJf7OYUze1Xjxn9peTqxVY9rRK9AVSGC9l/+jBX68BXYp4UUjbYGU+ZKgDhBHBhMXC1V TUpx8xbGl/JxU4RgR4E2tKkfDrY6U7DdU9t1MYKT1eAuHENmVlhrvOwRmGhlbsXiAuOtX5 o9Bt5QjQSifgYRvPCRdHfKE8+yVwTvyc03ja/GZcwGR8zGmYz1dIDW7tY9WKudrvp90Ip5 ++oJ5B2b6Tvjr8scIOr4keean63DA3AXq3TNl49MDIa/MBj/LdtOH3T/8p4ICXcTkxLXAu HQLDiSYBgzokRAAK59GAPA+VNRVou2JBLH/SebxSrg2CMCezVYAAvl9hjEUl1Q== From: Kyle Meyer In-Reply-To: References: Date: Thu, 20 Jan 2022 20:35:07 -0500 Message-ID: <871r11ooqc.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain 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: , Cc: 53393@debbugs.gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" 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=1642729100; h=from:from:sender:sender: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=tUV6j0JzyVOMr7Wi11YZSpJObKEE5ibCyiWQs0kA+g4=; b=je2xWlDW5aOOxNiPfJMwxAretazgz0bI0V0Yr4MKiFKL3XQlbOaS5+DkGLSJNuAuGZrNqH QnP6edhEtdUBY4BwS4PqAhj/9pH8/CvvUMm69Ou6I9we15+3OMq+MOpLd+0UqehZGDJv0l +bir4Kmo/MKc6z9pdu++7IZt/NHL402rD9btb3f9SEyZVLQY6l+hwFELe7LLc7h4rIBxh6 ICuxTxE8ObuXDAaW6LH9Xsi3bd+hTB3oMP3Myfwjg4R2HKY6XiF6uB8DSxhovR+YmOh3W9 i5J3H2ZOtBXaIJ8FCM4OEXQJmlQnakeDhdXrJd4EQuNfdoRptn0jIggY9QUvQw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642729100; a=rsa-sha256; cv=none; b=U44MTPIP4khQBpziddCxCX2CB1ssthfkAZZHhCK6QfNmN+r4smlH1VoTU15yuV57+Dxvaf HKbeivLOXnsXcDunpmlhr6okeurK4vmV7ZC70Mtrj7W+HSGjT3IV3LxIOaY9M8yU23I3FJ HJFWfWdkvY/f8x2sPuSddAH5lAFToUJqBSHuyRFgYnCk2cFA4gHc0WeoiWfppSZrzWPhx4 RTWFn8vAHNMiJRrE09xfrSYMxDAoE16BJNDdSJYY8JxV06A5RwwKF3HeiEtX0nFb2BUbBA wRsqqzJ1b04sHUdkV+llu0M4vKSxo8trwVtsdfkzrcE9kgPwSGykQFCHwI7rfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kyleam.com header.s=key1 header.b=t2eJf7OY; dmarc=none; 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.13 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kyleam.com header.s=key1 header.b=t2eJf7OY; dmarc=none; 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: 8160811588 X-Spam-Score: -2.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7idATkwI3Xjb [ I've reassigned this bug report so that new messages will be directed to the Org mailing list, where it's more likely to get a reply. In the future, please consider using org-submit-bug-report or sending a message to emacs-orgmode@gnu.org directly. ] Bruce E. Robertson writes: > emacs -Q test.org > cursor to "CLOCK:" line, C-c C-c > total time updates but day of week does not change > contents of test.org > ------ > * heading > :LOGBOOK: > CLOCK: [2022-01-17 Tue 10:29]--[2022-01-19 Tue 10:29] => 48:00 > :END: > ------ > typing C-c C-c does update total log time for line and recently did > update the day of the week but no long does I'm having trouble finding an Org version where it will update a timestamp _within_ a clock line. I tried it out with v9.1 and the day of the week still isn't updated. Outside of that context it will, as org-ctrl-c-ctrl-c-hook gets through to its timestamp condition rather than taking the clock branch. If you can provide more details about a version where it did work, showing it's a regression, I think you'll have a higher chance of getting this fixed. Anyway, at least for now, perhaps you could try something like this to get the behavior you want: (defun my/update-clock-and-days () (when (eq (org-element-type (org-element-context)) 'clock) (let ((re (org-re-timestamp 'inactive))) (save-excursion (goto-char (line-beginning-position)) (while (re-search-forward re (line-end-position) t) (backward-char) (org-timestamp-change 0 'day)))))) (add-hook 'org-ctrl-c-ctrl-c-hook #'my/update-clock-and-days) With that, hitting `C-c C-c` on the clock line at --8<---------------cut here---------------start------------->8--- * heading :LOGBOOK: CLOCK: [2022-01-17 Thu 10:29]--[2022-01-19 Sun 10:29] => 40:00 :END: --8<---------------cut here---------------end--------------->8--- produces --8<---------------cut here---------------start------------->8--- * heading :LOGBOOK: CLOCK: [2022-01-17 Mon 10:29]--[2022-01-19 Wed 10:29] => 48:00 :END: --8<---------------cut here---------------end--------------->8---