Org-mode mailing list
 help / color / mirror / Atom feed
From: Tim Cross <theophilusx@gmail.com>
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
Message-ID: <877dge5lic.fsf@gmail.com> (raw)
In-Reply-To: <87wnoezd15.fsf@disroot.org>


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-<up> gives
[2021-08-22 Sun 10:05-11:05]

but 

[2021-08-22 Sun 10:00-11:00] with C-u 42 S-<up> gives
[2021-08-22 Sun 10:42-11:05]

and

[2021-08-22 Sun 10:00-11:00] with C-u 42 S-<down> 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" <jorge+list@disroot.org> writes:

> [1. text/x-diff; 0001-Correctly-handle-org-log-note-clock-out-non-interact.patch]...
>
> Hello everyone!  The manual says:
>
>
> ‘S-<UP>’ (‘org-timestamp-up’)
> ‘S-<DOWN>’ (‘org-timestamp-down’)
>      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 ‘15:30-16:30’, modifying the first time
>      also shifts the second, shifting the time block with constant
>      length. [...]
>
> However, on the timestamp [2021-08-21 sáb 10:00-12:00], with point right
> after the first colon, typing C-u 42 S-<up> results in
> [2021-08-21 sáb 10:42-12:05].  The problem also occurs with S-<down>.
>
> This occurs on GNU Emacs 28.0.50 installed with
> ~guix package --with-branch=emacs-next=master -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/site-lisp/org-9.4.6/)



      reply	other threads:[~2021-08-22  1:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-21 21:46 Jorge P. de Morais Neto
2021-08-22  0:59 ` Tim Cross [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://orgmode.org

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877dge5lic.fsf@gmail.com \
    --to=theophilusx@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Org-mode mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://orgmode.org/list/0 list/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 list list/ https://orgmode.org/list \
		emacs-orgmode@gnu.org
	public-inbox-index list

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git