From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yBfEKZz362GuCAEAgWs5BA (envelope-from ) for ; Sat, 22 Jan 2022 13:25:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mGkjJpz362GMhwAAauVa8A (envelope-from ) for ; Sat, 22 Jan 2022 13:25:00 +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 8187235962 for ; Sat, 22 Jan 2022 13:24:59 +0100 (CET) Received: from localhost ([::1]:57338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBFRt-0008EW-1p for larch@yhetil.org; Sat, 22 Jan 2022 07:24:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBFPo-0008E2-D4 for emacs-orgmode@gnu.org; Sat, 22 Jan 2022 07:22:45 -0500 Received: from wforward1-smtp.messagingengine.com ([64.147.123.30]:59593) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBFPk-0000AD-3U for emacs-orgmode@gnu.org; Sat, 22 Jan 2022 07:22:42 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id 628BD1AC23C4; Sat, 22 Jan 2022 07:22:36 -0500 (EST) Received: from imap41 ([10.202.2.91]) by compute1.internal (MEProxy); Sat, 22 Jan 2022 07:22:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=CBFiI8qia8we9UYJE 789dU54Yz8eVVwS4czbvE3yjpQ=; b=gP0lRP20bI8FqsyRCPZnM1GTcSR48/45j Q1dYaXHRd3Zi6EjxodHHE3sXm9TXsfJ/WH2Jvq/P7wvrMHNB0z2DPUF4CknXOJ3L hJcVVy6Y5NW4bQZ/Jan5fOxBFZ8lqwxa6+OY5dFdFbCTzPEa5KHQZUZWYwbwgLKu T8yDKVPmf0IOcsfX62jP7kg2grYZxlUC6R7n9ix8wAH0L1Djbh9+sJ7crjc+YB5L Pv3d8g69SxQnj3lms9kxC6sA+zovykXGXBApATqD4Uii8HQ2/cC+5xh/p9LB3ppH 70zk4nOeP3E2Fr41yHeMR/EqvsPLm41ZdYeJWF5xa+RjomakiVaYg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrvddvgdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre erreerjeenucfhrhhomhepfdfrvghtvghrucffrghvihhsfdcuoehpfhgusehpfhgushht uhguihhordgtohhmqeenucggtffrrghtthgvrhhnpeevveehtdevvefgtddtffeulefhle ehkeffteevgfekueekheehueeltefhjeekhfenucffohhmrghinhepthhhrghtrdhorhhg pdhtvghsthdrohhrghdpthgvtghhtghurhhmuhgughgvohhnrdgtohhmnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphhfugesphhfughsthhu ughiohdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 881493C00CF; Sat, 22 Jan 2022 07:22:35 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4585-ga9d9773056-fm-20220113.001-ga9d97730 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <871r11ooqc.fsf@kyleam.com> Date: Sat, 22 Jan 2022 07:22:15 -0500 From: "Peter Davis" To: emacs-orgmode@gnu.org Subject: Re: bug#53393: 29.0.50; org mode timestamp C-c C-c not updating day of week Content-Type: multipart/alternative; boundary=4b933287c30d4d21bb12be013da50993 Received-SPF: none client-ip=64.147.123.30; envelope-from=pfd@pfdstudio.com; helo=wforward1-smtp.messagingengine.com X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, GAPPY_SUBJECT=0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=1642854300; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=CBFiI8qia8we9UYJE789dU54Yz8eVVwS4czbvE3yjpQ=; b=Gn+Rq7TOCNvUYw5LTyAQg25isAEGQw/2O6ewQNHEPEJS24JPv6qI4JI9KGh/aXXBkVzlcX 40v8IBrtlBwRgFU9LcvPh6Xs2vptfErfSuEvSDdvu+lIJ2Hygv31rcK27uZb9QUQV/y6Oq l7nU70MQ8MpFrqncDLxGY7TtxVG+QqXHnms+b0FRhyWResDuoiTl1tu+1/HoDht/XaAHKq XTPePCuz/qgGkTWsrOoP98unIvZD1vDHasSqyNIK1htcp4gcaAv/hgzIGhJMCHuLktNGWz uYBgqvx0VUXXJBWwdn0ALhK5O+topviYh/0ErS8G03O3nKU5CjpmZZCbehyB0w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642854300; a=rsa-sha256; cv=none; b=F8poVBzFyqjD/9V2bODxgq4sfczEYtMud4eMB0dY39lj3FFdND6hjMY3ite8gufGPSxdzj O6i+tMLh7L/YNwctKOvZJZ99qd6pBmmtrCb1JoC+N/Q5AuX94Qgr4qWIfqvhz2PyCRDTfV ORwssgEsUkb38BM2xQtqiK9sEItn099jSQBiOlKc7QHhebEd6RcvuGGzrqS7fSt//6sxF4 +JABXSUlAN6kDm7VrZCClRlKbdwJvHEAOeFK5Dkv8p0yoYXJWQYKxaCM4zFPB9BlLv4PSx n37jjro1TtRPA0I9vbvztosk2H6BwdXYvZGGUdgxGcLFABLrtNoifJTSHsAmqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=gP0lRP20; 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.22 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=gP0lRP20; 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: 8187235962 X-Spam-Score: -2.22 X-Migadu-Scanner: scn0.migadu.com X-TUID: n9Q+4ZbIirT1 --4b933287c30d4d21bb12be013da50993 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, Please unsubscribe my husband Peter Davis from this list. He died 3 yea= rs ago. Thanks, Donna Cantera-Davis On Thu, Jan 20, 2022, at 9:07 PM, bruce robertson wrote: > Thanks. I=E2=80=99ll do that. Org-submit =E2=80=A6 that is.=20 >=20 > On Thu, Jan 20, 2022 at 5:35 PM Kyle Meyer wrote: >> [ I've reassigned this bug report so that new messages will be direct= ed >> 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. ] >>=20 >> Bruce E. Robertson writes: >>=20 >> > 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] =3D> 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 >>=20 >> 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. >>=20 >> 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. >>=20 >> Anyway, at least for now, perhaps you could try something like this to >> get the behavior you want: >>=20 >> (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)))))) >>=20 >> (add-hook 'org-ctrl-c-ctrl-c-hook #'my/update-clock-and-days) >>=20 >> With that, hitting `C-c C-c` on the clock line at >>=20 >> --8<---------------cut here---------------start------------->8--- >> * heading >> :LOGBOOK: >> CLOCK: [2022-01-17 Thu 10:29]--[2022-01-19 Sun 10:29] =3D> 40:00 >> :END: >> --8<---------------cut here---------------end--------------->8--- >>=20 >> produces >>=20 >> --8<---------------cut here---------------start------------->8--- >> * heading >> :LOGBOOK: >> CLOCK: [2022-01-17 Mon 10:29]--[2022-01-19 Wed 10:29] =3D> 48:00 >> :END: >> --8<---------------cut here---------------end--------------->8--- > --=20 > =CE=BB=CE=AD=CE=B3=CE=B5=CE=B9 =CE=B1=E1=BD=90=CF=84=E1=BF=B7 =E1=BC=B8= =CE=B7=CF=83=CE=BF=E1=BF=A6=CF=82 =E1=BC=98=CE=B3=CF=8E =CE=B5=E1=BC=B0=CE= =BC=CE=B9 =E1=BC=A1 =E1=BD=81=CE=B4=E1=BD=B8=CF=82 =CE=BA=CE=B1=E1=BD=B6= =E1=BC=A1 =E1=BC=80=CE=BB=CE=AE=CE=B8=CE=B5=CE=B9=CE=B1 =CE=BA=CE=B1=E1= =BD=B6 =E1=BC=A1 =CE=B6=CF=89=CE=AE=C2=B7 =CE=BF=E1=BD=90=CE=B4=CE=B5=E1= =BD=B6=CF=82 =E1=BC=94=CF=81=CF=87=CE=B5=CF=84=CE=B1=CE=B9 =CF=80=CF=81=E1= =BD=B8=CF=82 =CF=84=E1=BD=B8=CE=BD =CE=A0=CE=B1=CF=84=CE=AD=CF=81=CE=B1 = =CE=B5=E1=BC=B0 =CE=BC=E1=BD=B4 =CE=B4=CE=B9' =E1=BC=90=CE=BC=CE=BF=E1=BF= =A6. =CE=9A=CE=91=CE=A4=CE=91 =CE=99=CE=A9=CE=91=CE=9D=CE=9D=CE=97=CE=9D -- Peter Davis www.techcurmudgeon.com --4b933287c30d4d21bb12be013da50993 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hello,

Please unsubscribe my husband Peter = Davis from this list.  He died 3 years ago.

Thanks,<= br>
Donna Cantera-Davis

On Thu, Jan 20, 2022, at 9:= 07 PM, bruce robertson wrote:
Thanks. I=E2=80=99ll do that. Org-submit= =E2=80=A6 that is. 

On Thu, Jan 20, 20= 22 at 5:35 PM Kyle Meyer <kyle@kyl= eam.com> wrote:
[ I've reassigned this bug report s= o that new messages will be directed
  to the Org ma= iling list, where it's more likely to get a reply.  In
  the future, please consider using org-submit-bug-report or sen= ding a
  message to emacs-orgmode@gnu.org directly. ]

Bruce E. Robertson writes:

> emacs -Q test.org
> cursor to "CLOCK:" lin= e, C-c C-c
> total time updates but day of week does n= ot change
> contents of test.org
> ----= --
> * heading
> :LOGBOOK:
=
> CLOCK: [2022-01-17 Tue 10:29]--[2022-01-19 Tue 10:29] =3D>= 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
<= /div>

I'm having trouble finding an Org version whe= re 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 chan= ce 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)
        &nbs= p;   (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 cloc= k line at

--8<---------------cut here-= --------------start------------->8---
* heading
:LOGBOOK:
CLOCK: [2022-01-17 Thu 10:29]--[2022-0= 1-19 Sun 10:29] =3D> 40:00
:END:
--8<= ;---------------cut here---------------end--------------->8---

produces

--8<= ---------------cut here---------------start------------->8---
* heading
:LOGBOOK:
CLOCK: [2022-0= 1-17 Mon 10:29]--[2022-01-19 Wed 10:29] =3D> 48:00
:EN= D:
--8<---------------cut here---------------end------= --------->8---
--
=CE=BB=CE=AD=CE=B3=CE=B5=CE=B9= =CE=B1=E1=BD=90=CF=84=E1=BF=B7 =E1=BC=B8=CE=B7=CF=83=CE=BF=E1=BF=A6=CF=82= =E1=BC=98=CE=B3=CF=8E =CE=B5=E1=BC=B0=CE=BC=CE=B9 =E1=BC=A1 =E1=BD=81=CE= =B4=E1=BD=B8=CF=82 =CE=BA=CE=B1=E1=BD=B6 =E1=BC=A1 =E1=BC=80=CE=BB=CE=AE= =CE=B8=CE=B5=CE=B9=CE=B1 =CE=BA=CE=B1=E1=BD=B6 =E1=BC=A1 =CE=B6=CF=89=CE= =AE=C2=B7 =CE=BF=E1=BD=90=CE=B4=CE=B5=E1=BD=B6=CF=82 =E1=BC=94=CF=81=CF=87= =CE=B5=CF=84=CE=B1=CE=B9 =CF=80=CF=81=E1=BD=B8=CF=82 =CF=84=E1=BD=B8=CE=BD= =CE=A0=CE=B1=CF=84=CE=AD=CF=81=CE=B1 =CE=B5=E1=BC=B0 =CE=BC=E1=BD=B4 =CE= =B4=CE=B9' =E1=BC=90=CE=BC=CE=BF=E1=BF=A6. =CE=9A=CE=91=CE=A4=CE=91 =CE=99= =CE=A9=CE=91=CE=9D=CE=9D=CE=97=CE=9D

--
  Peter Davis
<= div class=3D"signature">  www.techcurmudgeon.com
--4b933287c30d4d21bb12be013da50993--