From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eekFKxOlIWE5nQAAgWs5BA (envelope-from ) for ; Sun, 22 Aug 2021 03:14:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aO8OJhOlIWGgIQAAbx9fmQ (envelope-from ) for ; Sun, 22 Aug 2021 01:14:59 +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 2E64DE79D for ; Sun, 22 Aug 2021 03:14:58 +0200 (CEST) Received: from localhost ([::1]:34480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHc4e-0004SM-D9 for larch@yhetil.org; Sat, 21 Aug 2021 21:14:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHc3v-0004PZ-S6 for emacs-orgmode@gnu.org; Sat, 21 Aug 2021 21:14:11 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:46805) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHc3t-0005tg-6b for emacs-orgmode@gnu.org; Sat, 21 Aug 2021 21:14:11 -0400 Received: by mail-pl1-x62e.google.com with SMTP id u15so8065963plg.13 for ; Sat, 21 Aug 2021 18:14:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=0oNvMUy2I5vGSDUsaNG5x7DHkveaTQa2oaichwFVG8g=; b=lAEJsIKGwwVlY+1o1UCkk08KZAj835pKNvN+KyIWDG0m8nU3gflR3Wt71e8uau+iQH bwuFQAVEmf4YrMHqs27P7zopzRA0AToGQPXjio2ut1ul+DNK+/pBUr+P96LoQ0WGtCMY 91y6wBaHhA/lo5KFV7a4MWS71hbpjtz9CU6nyMkLfYrcn2wBkisN7ugGyJC354q/SM4S JIzBe1XJGeeHrWpjvYB8R5Lq1mhiLFMVWO41Iwv0QiDTmSEFhJsAWIQqlxD8XBQCL7dB pEY1Kiz23KUwZg/u9xoNwOOzMPP0CT3bMQtAptRSGH0yyoxfmlRb+NinneMWenDb/Sxs KGJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=0oNvMUy2I5vGSDUsaNG5x7DHkveaTQa2oaichwFVG8g=; b=OJlNm/m6Hk+9Bx+xJd166rOclqMSs4H/WMO9mIFJbNymfT3v7sxfFDR8VIN/ZBDhVj EozmwXw3QLsEKYp0hFqyT8/PEbEzMU1EIne0TFgxsbBhN4YKdl60aYkjJGHTNTKX5niP 5L7o5+Xsmf/wSWFOzXulAkCHSwmkkaBy1meZF3W6fqUDX2Y7+Pdyhkm2v+oqcbMWW+3Z y7CdiM1gDbbS2Vj9gxtM7Yz3zLNhlAjKBQ4LTbPTHt8Uhl6IllvXLj4zOeLGh48vFo2l 9coS5iDUuc/08Q/NQuLkUnyzaJib9WDQ66CjsMlJIc33hwgdS6EOTF4vb/MeHTdSXzAn A5Ow== X-Gm-Message-State: AOAM533DQj0IAJGvWYHf5fhbGFv5wUmsUbvEfR+eU9w4aeeu10RwhaCE j6Wa4SjCtOhZZVMqmbUqpf4IAduprwY= X-Google-Smtp-Source: ABdhPJwXdRLPUizzOhxZ4yTg6CFQNhNSEp8CKiQIBiE8Qba2QMtoQFnYs6kJ2aYE8SPVRrPpyAccxg== X-Received: by 2002:a17:90b:3013:: with SMTP id hg19mr12562878pjb.15.1629594847238; Sat, 21 Aug 2021 18:14:07 -0700 (PDT) Received: from tim-desktop (106-69-104-133.dyn.iinet.net.au. [106.69.104.133]) by smtp.gmail.com with ESMTPSA id d15sm11801825pfd.115.2021.08.21.18.14.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Aug 2021 18:14:06 -0700 (PDT) References: <87wnoezd15.fsf@disroot.org> User-agent: mu4e 1.6.4; emacs 27.2.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: 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/)] Date: Sun, 22 Aug 2021 10:59:05 +1000 In-reply-to: <87wnoezd15.fsf@disroot.org> X-Woof-Bug: confirm Message-ID: <877dge5lic.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x62e.google.com 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, FREEMAIL_FROM=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.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=1629594898; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=0oNvMUy2I5vGSDUsaNG5x7DHkveaTQa2oaichwFVG8g=; b=OhC8pdcoWUQEw4DYjKCAppLw2ib4ltR1L++ukfPbkszmcorTkvQxJHuYJRN1O37iC7LyWP J16GAU9SHCEJRf4rGfhl6h/8j2247FRgvna3Jh8sy1yXbRxWy/zM7WYXrlw5IiYwKgIkpu yVRpqmPjos0AWgDIebKf0hcERuKbUW1hPjKy6KXo9t96/Ki86keLP3f4u7S1IS2n13LMU7 SFiW8rrJseP49T36uB746MRFsJRY336x4ou0dQnt0bsJyKcVO/fIwaihXPHs2t+tI2P1r7 VjTRCYJPA6gf3h7qpOHWtmSljGPT2tvgsltXXEhAO6LqZUEfQWc4AbjdbY0zKA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629594898; a=rsa-sha256; cv=none; b=Kjq+djnUf1R5cH7Uc4Ww5HJSjsI8OjuX+UYATvtcxTP/Ue+smI+9Vi6VZjX9aAkB6CzfnN YIFVrMEjfAEy/Y5vQuFLBC2oMtXSm8CnTve6fHx92fHIpNgQ4sgJDEIxibdfdRqR/k26/C JV2q1vWjalXKEGOa7CILxXnKfBWZl7J0zDvxQM43+q793xI2WTJRerTkHjocCXKwW4XdxH Q9BrYyaRMgCDXvcU/z2KJ6uZzWQt6EWj347YNUXMDffSc743WJjAXLvhN19U057bM6TXI+ 4CDxVTP3bH31eq6lGVZSe4Nv3erN5WDj+SAR80is8gjv38VjsyG70ag1w85lPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=lAEJsIKG; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=lAEJsIKG; dmarc=pass (policy=none) header.from=gmail.com; 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: 2E64DE79D X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: ePk4HOtXCN6/ Confirm. I am able to confirm this bug using Emacs 27.2 and org 9.4.6 from ELPA. It seems that when changing the first time interval with a C-u argument to set the amount of change, the units are not applied to the second time in the interval, it always changes by 5. So [2021-08-22 Sun 10:00-11:00] with S- gives [2021-08-22 Sun 10:05-11:05] but=20 [2021-08-22 Sun 10:00-11:00] with C-u 42 S- gives [2021-08-22 Sun 10:42-11:05] and [2021-08-22 Sun 10:00-11:00] with C-u 42 S- gives [2021-08-22 Sun 10:18-11:55] the size of the change units does not need to be 42. Problem exists with any unit > 5. Note that this issue seems to only be applied to minutes. The hours change looks to be correct. "Jorge P. de Morais Neto" writes: > [1. text/x-diff; 0001-Correctly-handle-org-log-note-clock-out-non-interac= t.patch]... > > 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 = the 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 r= ight > 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/yg6kjzigqyfzbkzj99xmwmv3nssvhvnq-emacs-org-9.4.6/share/emacs/s= ite-lisp/org-9.4.6/)