From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UPTXAYR0IWFrQgAAgWs5BA (envelope-from ) for ; Sat, 21 Aug 2021 23:47:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4KshOYN0IWGEMAAAB5/wlQ (envelope-from ) for ; Sat, 21 Aug 2021 21:47:47 +0000 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 34E9CC377 for ; Sat, 21 Aug 2021 23:47:47 +0200 (CEST) Received: from localhost ([::1]:50378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHYq8-0000bK-71 for larch@yhetil.org; Sat, 21 Aug 2021 17:47:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHYpO-0000b8-TC for emacs-orgmode@gnu.org; Sat, 21 Aug 2021 17:46:59 -0400 Received: from knopi.disroot.org ([178.21.23.139]:34990) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHYpM-0000qy-Eo for emacs-orgmode@gnu.org; Sat, 21 Aug 2021 17:46:58 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id BA5D663778 for ; Sat, 21 Aug 2021 23:46:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UyB3iGXbzQPx for ; Sat, 21 Aug 2021 23:46:51 +0200 (CEST) From: "Jorge P. de Morais Neto" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1629582411; bh=yeld+2B/qPRA19Tq/9fiWHjowOtHsbJGcIxeseRMYy4=; h=From:To:Subject:Date; b=WHBjUAhUIHyX49cFb4sZOQSFz0dC03+E5brKAIHNxFt9K9YM8i8XIs8/uqqP28I/p +LNw4N2slfRm2lD0okQTrbm+xFP/QItGKnik2szwA0Ur4CFfOxTJyu0obXR94x6XGm jAhEKLBHpaw0A1grgaquSiLsDhntEb4RREcvMd8VZBOcXguvdgjL8zVTfRaWk+yblE oqPJRikILz4i0BFwMDyk+cXWfBVFh0lU+Zy7zD0L+UsIZ4TRTw8tHb/OFqBEIsfFLi tzXEE5jdHMbjaAFxDYO2IMTjnZAO5SU9upBfX1rocW1m6bNkJe0+G2ve/eVI6MW56G 24mqyHabmz4Pg== To: emacs-orgmode@gnu.org Subject: Bug: org-timestamp-{down,up} with numeric argument on time range modifies length [9.4.6 (9.4.6-gab9f2a @ /gnu/store/yg6kjzigqyfzbkzj99xmwmv3nssvhvnq-emacs-org-9.4.6/share/emacs/site-lisp/org-9.4.6/)] Mail-Followup-To: emacs-orgmode@gnu.org Date: Sat, 21 Aug 2021 18:46:46 -0300 Message-ID: <87wnoezd15.fsf@disroot.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=178.21.23.139; envelope-from=jorge+list@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_MSPIKE_H2=-0.001, 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.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629582467; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=yr0RM/hUo9VO6BhoE7akne1KkmTDQ1vPj76YkOBSkNA=; b=K3Dcz/+BFrovuR7SIaaW2i6Y6A60iGFxhic/yuT8JSVnSCjdUAXGhCUoez3/uFUh3+UXxL Q0HfQhyAF71D5dhaGa/2z+5IBx6wSXzTe8A3/+F4Zh9jMLnD09tzGD6wTNraQ/U/nFpvu7 g2WAwXhkCn/ZIkdX+GU0t/9+ej8UVqOQRlMUIfFhG6cVQHclGkRA0+eZ9MM3g6fiCtXQMM AhBf5Skjdau8Lf96rnwDcjAQWOiS0Ko3IM/YylHUBnywW13fkWydmyDybB2hpvNCdfwZuN SMl6f8s+0Sf2DBWzli98403XFS003Q3IFNeILMjEIOs+lS5fCe69EkSQHTmgFA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629582467; a=rsa-sha256; cv=none; b=mlfQpnsisjOwVmql3j3ACyqBbuylCBRKwM/CzVaPYWLD/7hJ8AdqlodOYFodf0h4pEd1ZV Aso5U5wDxODcSS6T5DUgKf6WKMX4JD5FQ0bohEGKGhQW5J9R5gK1KCMfwYTKFGOQlQqUnD CiPv0rD5cRKjuVs/odiDCoo0mpYV0Wl/4jN5Bz35trLDTyAOck3GHznPX092TUB0qQny9q OM1Jmzcv8wdOyG57pk2MBmvogUmmiUJ8pjy7vQBg8slyb57kiJCvsM1j65Om34n7JLLyOq 5qgV/1ZBS/xpK8nP79xDW+JWUS/QykcNab9uaY0fX9BqPSa9wRpR6If9rOZVWQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=WHBjUAhU; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=WHBjUAhU; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 34E9CC377 X-Spam-Score: -2.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: NAkACkWcCgWs --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Correctly-handle-org-log-note-clock-out-non-interact.patch >From 7dc855ae1d7992eaacc2cab13a39c6000e4e66bf Mon Sep 17 00:00:00 2001 Message-Id: <7dc855ae1d7992eaacc2cab13a39c6000e4e66bf.1622468529.git.yantar92@gmail.com> From: Ihor Radchenko Date: Mon, 31 May 2021 21:39:51 +0800 Subject: [PATCH] Correctly handle org-log-note-clock-out non-interactively * org-clock.el (org-clock-out): Delay log popup to after-command-hook to avoid messing up non-interactive calls. `org-add-log-setup' without 'note argument would raise interactive note buffer immediately, so we do pass the 'note argument. --- org-clock.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-clock.el b/org-clock.el index 3b7d97639..0328bddd3 100644 --- a/org-clock.el +++ b/org-clock.el @@ -1691,7 +1691,7 @@ (defun org-clock-out (&optional switch-to-state fail-quietly at-time) (line-beginning-position 2))) (org-log-note-clock-out (org-add-log-setup - 'clock-out nil nil nil + 'clock-out nil nil 'note (concat "# Task: " (org-get-heading t) "\n\n")))) (when org-clock-mode-line-timer (cancel-timer org-clock-mode-line-timer) -- 2.26.3 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello everyone! The manual says: =E2=80=98S-=E2=80=99 (=E2=80=98org-timestamp-up=E2=80=99) =E2=80=98S-=E2=80=99 (=E2=80=98org-timestamp-down=E2=80=99) On the beginning or enclosing bracket of a timestamp, change its type. Within a timestamp, change the item under point. Point can be on a year, month, day, hour or minute. When the timestamp contains a time range like =E2=80=9815:30-16:30=E2=80=99, modifying th= e first time also shifts the second, shifting the time block with constant length. [...] However, on the timestamp [2021-08-21 s=C3=A1b 10:00-12:00], with point rig= ht after the first colon, typing C-u 42 S- results in [2021-08-21 s=C3=A1b 10:42-12:05]. The problem also occurs with S-. This occurs on GNU Emacs 28.0.50 installed with ~guix package --with-branch=3Demacs-next=3Dmaster -i emacs-next~ (upgraded last Thursday morning), invoked as ~emacs -q~. Note that on my Guix-installed Emacs, an ~emacs -q~ does load the emacs-org Guix package (version 9.4.6). Note also that my Org Mode has been patched with Ihor Radchenko's patch to org-clock.el (attached), but it clearly can't influence this problem. Regards Emacs : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24= .24, cairo version 1.16.0) Package: Org mode version 9.4.6 (9.4.6-gab9f2a @ /gnu/store/yg6kjzigqyfzbkz= j99xmwmv3nssvhvnq-emacs-org-9.4.6/share/emacs/site-lisp/org-9.4.6/) --=20 - Disinformation flourishes because many people care about injustice but very few check the facts. Ask me about - I am Brazilian. I hope my English is correct and I welcome feedback. - Free Software Supporter: https://www.fsf.org/free-software-supporter - If an email of mine arrives at your spam box, please notify me. --=-=-=--