From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +MDhAMKKiWOhEQAAbAwnHQ (envelope-from ) for ; Fri, 02 Dec 2022 06:18:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0NcBAcKKiWP06AAAauVa8A (envelope-from ) for ; Fri, 02 Dec 2022 06:18:58 +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 DE59D2AB0E for ; Fri, 2 Dec 2022 06:18:57 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0yQy-00062m-3G; Fri, 02 Dec 2022 00:18:00 -0500 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 1p0yQw-00062M-F9 for emacs-orgmode@gnu.org; Fri, 02 Dec 2022 00:17:58 -0500 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0yQu-0001QU-Ms for emacs-orgmode@gnu.org; Fri, 02 Dec 2022 00:17:58 -0500 Received: by mail-ej1-x630.google.com with SMTP id ud5so9111090ejc.4 for ; Thu, 01 Dec 2022 21:17:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=i2MRgGUqZkNi3IhsR6QybBaeCDC+tSWt08Of0d0ZnB4=; b=Fj4uJOoo73oXGJA/6mdnsO7HRmDk14Rg8BePGgdiNLfKZw8WUplEmfA/k5SBJ8WRcG jJopQfa6t/RypFXZYH0ogvSz5OX1aZpMtPelSaZKoaDVPhQ7UCSrLFg7Jzw5MRO1yN4p 2Bu+HLzkrOkvKkjsa57HBlVkH1ewYIQyg5QsNo0xFxIcL8b/GDRk883KGcWSg/PbRwtR rCBOnQ+K43jucL9ATuO1v/AAiqw4JtCLwHvgA6y3S5TkCTHXhuWrhAYhjOCnIAdgIoRI HVeyuDvVeKGamXFSZP/UPB/UKVWPqp6i8KMP5LRCqt4Y2/MQlU4jzlYMHSU2VoNOGfia L0fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=i2MRgGUqZkNi3IhsR6QybBaeCDC+tSWt08Of0d0ZnB4=; b=iHaTRn+KNpcw7onISyfJU7OsP7FFpQJo9Kr+2VXI2WSYbamoSwRedGxcJN+42BaIyN n/HIBeD6eOybIfMWuqk27nBKQNWBEa1vmQQOxyCLW+awg1BZezmE9RhfCjRzuDqi68l7 5+w5k46jiICWBw38/4MQ0vdZAWLpqQ0vFs3W9+2ahe0QzmE1M5P2xo0v7kv/+09cxZCx 7/kbYrAXyDOMoV2y4Nn94igEpa4hJElGKWUg6PfVH2O01nrih9NkM1rsx0WoDSk9w86o ahlxzA50zGxJVU4GeEdqCFEnUYMGVuBcRyXLgQzKbPqGyws38+x82XkarmDwcwyP9RaF WZHw== X-Gm-Message-State: ANoB5pk4v1aMzQbAs066AS6PL4rVEmqsqtq2T2Ukul86MHdrr1DPzIjJ JkQjXYcxg2bSYK3iseFFpe8bZXoRN9Qx9XCbHM280D8tjfM= X-Google-Smtp-Source: AA0mqf6wbHM05puvZYy84oMs3Fg9ibcBHTjCvVUh6Ya8qSf7pXXqLyLl+t+Yxn5dfVaAEciES92JVorDLdL4MV3jDxk= X-Received: by 2002:a17:906:9618:b0:7ae:38a:fd with SMTP id s24-20020a170906961800b007ae038a00fdmr59299877ejx.501.1669958274780; Thu, 01 Dec 2022 21:17:54 -0800 (PST) MIME-Version: 1.0 From: Daniel Clemente Date: Fri, 2 Dec 2022 05:17:27 +0000 Message-ID: Subject: [BUG] Shift-up/down move the cursor to end of timestamp To: Org-mode Org-Mode Content-Type: multipart/alternative; boundary="000000000000c215a205eed17596" Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=n142857@gmail.com; helo=mail-ej1-x630.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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-bounces+larch=yhetil.org@gnu.org X-TUID: IgNR/4R1UPdA --000000000000c215a205eed17596 Content-Type: text/plain; charset="UTF-8" Hi. Using a file with just one header: * something :CLOCK: CLOCK: [2022-12-01 Thu 17:15]--[2022-12-01 Thu 17:30] => 0:15 :END: If I put the cursor on the end timestamp (on the 3 of 17:30) and press shift+up or shift-down, the timestamp is correctly adjusted by 5 minutes, but the cursor jumps some characters to the right and stays at the right of ] It should stay on the same character (the 3), so that I can keep adjusting the minutes with shift-up/down Tested on: GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2022-11-18 No other settings needed in your .emacs I bisected the tree until I found in which commit this started. Copying from git bisect: 5bc6741a5abd42e8305bb0fcfe78801813309640 is the first bad commit commit 5bc6741a5abd42e8305bb0fcfe78801813309640 Author: Ihor Radchenko Date: Tue Nov 1 15:52:25 2022 +0800 org-clock-update-time-maybe: Update the containing timestamps as well * lisp/org-clock.el (org-clock-update-time-maybe): Update the containing timestamps inside the clock, not only the clock sum. Reported-by: Bruce E. Robertson Link: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=53393 lisp/org-clock.el | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) --000000000000c215a205eed17596 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi.

Using a file with just = one header:

* something
=C2=A0 := CLOCK:
=C2=A0 CLOCK: [2022-12-01 Thu 17:15]--[2022-12-01 Thu 17:30] =3D&= gt; =C2=A00:15
=C2=A0 :END:

If I put the cursor= on the end timestamp (on the 3 of 17:30) and press shift+up or shift-down,= the timestamp is correctly adjusted by 5 minutes, but the cursor jumps som= e characters to the right and stays at the right of ]
It should s= tay on the same character (the 3), so that I can keep adjusting the minutes= with shift-up/down

Tested on: GNU Emacs 29.0.= 50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scro= ll bars) of 2022-11-18
No other settings needed in your .emacs

I bisected the tree until I found in which commit th= is started. Copying from git bisect:

5bc6741a5= abd42e8305bb0fcfe78801813309640 is the first bad commit
commit 5bc6741a5= abd42e8305bb0fcfe78801813309640
Author: Ihor Radchenko <yantar92@posteo.net>
Date: =C2=A0 Tue N= ov 1 15:52:25 2022 +0800

=C2=A0 =C2=A0 org-clock-update-time-maybe: = Update the containing timestamps as well
=C2=A0 =C2=A0
=C2=A0 =C2=A0= * lisp/org-clock.el (org-clock-update-time-maybe): Update the
=C2=A0 = =C2=A0 containing timestamps inside the clock, not only the clock sum.
= =C2=A0 =C2=A0
=C2=A0 =C2=A0 Reported-by: Bruce E. Robertson <brucer42@gmail.com>
=C2=A0 =C2=A0 = Link: htt= ps://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D53393

=C2=A0lisp/or= g-clock.el | 35 ++++++++++++++++++++++++-----------
=C2=A01 file changed= , 24 insertions(+), 11 deletions(-)


--000000000000c215a205eed17596--