Re: [BUG] M-S- does not adjust clock timestamps as described in docs [9.5.5]

2023-02-09 Thread Ihor Radchenko
Robert Nikander  writes:

> I’m pretty much a beginner with the clock features, so I don’t have an 
> opinion yet on how it should work. But yes, it seems like clarifying the 
> manual there would be an improvement. 

Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5d548c34f

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] M-S- does not adjust clock timestamps as described in docs [9.5.5]

2023-02-08 Thread Mark Barton


> On Feb 8, 2023, at 6:11 AM, Robert Nikander  
> wrote:
> 
> I’m pretty much a beginner with the clock features, so I don’t have an 
> opinion yet on how it should work. But yes, it seems like clarifying the 
> manual there would be an improvement. 
> 
> I don’t know what agenda clock check is. Is that a certain function, or 
> agenda view? Searching the manual and functions for that term didn’t yield 
> anything obvious.

Here is an option that I have been using for a few years now, in case it helps 
you find your solution.

I use org agenda view with log mode on to show clocked entries. The "v c" keys 
bring up the view of clock check
C-c a a l v c

Now to adjust the gaps or overlaps in clocking, I found this package helpful 
versus doing it manually for the entries.
https://github.com/dfeich/org-clock-convenience

I can go to a clock entry that needs adjustment and run the 
org-clock-convenience-fill-gap command and it will adjust the time to be 
contiguous. 

Mark

Re: [BUG] M-S- does not adjust clock timestamps as described in docs [9.5.5]

2023-02-08 Thread Robert Nikander



> On Feb 8, 2023, at 5:14 AM, Ihor Radchenko  wrote:
> 
> Robert Nikander  writes:
> 
>> […]
>> 
>> If I put point on the minutes of 12:30 (second line) and hit S-M-, it 
>> moves the time to 12:35, but nothing else moves. Based on the docs, I 
>> thought it would shift one of the other lines.
> 
> S-M- only considers clock history during current Emacs session. Will
> clarifying this in the manual suffice for your use-case?
> 
> If not limiting the command to current clock history, we would need to
> look across every single Org file searching for intersecting clocks -
> extremely resource-intensive procedure.
> 
> Note that you can use agenda clock check to catch clock inaccuracies.

I’m pretty much a beginner with the clock features, so I don’t have an opinion 
yet on how it should work. But yes, it seems like clarifying the manual there 
would be an improvement. 

I don’t know what agenda clock check is. Is that a certain function, or agenda 
view? Searching the manual and functions for that term didn’t yield anything 
obvious.





Re: [BUG] M-S- does not adjust clock timestamps as described in docs [9.5.5]

2023-02-08 Thread Ihor Radchenko
Robert Nikander  writes:

> But it doesn't seem to work like that. For example
>
>* Testing it out
>:LOGBOOK:
>CLOCK: [2023-02-07 Tue 12:35]--[2023-02-07 Tue 12:45] =>  0:10
>CLOCK: [2023-02-07 Tue 12:20]--[2023-02-07 Tue 12:30] =>  0:10
>CLOCK: [2023-02-06 Mon 12:20]--[2023-02-06 Mon 13:20] =>  1:00
>:END:
>
> If I put point on the minutes of 12:30 (second line) and hit S-M-, it 
> moves the time to 12:35, but nothing else moves. Based on the docs, I thought 
> it would shift one of the other lines.

S-M- only considers clock history during current Emacs session. Will
clarifying this in the manual suffice for your use-case?

If not limiting the command to current clock history, we would need to
look across every single Org file searching for intersecting clocks -
extremely resource-intensive procedure.

Note that you can use agenda clock check to catch clock inaccuracies.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



[BUG] M-S- does not adjust clock timestamps as described in docs [9.5.5]

2023-02-07 Thread Robert Nikander
Hi,

The docs say this about S-M + arrow keys on clock log lines. (In section: 8.4.1 
- Dates and Times > Clocking Work Time > Clocking Commands)

  ‘S-M-’ (‘org-timestamp-up’)
  ‘S-M-’ (‘org-timestamp-down’)
 On ‘CLOCK’ log lines, increase/decrease the timestamp at point and
 the one of the previous, or the next, clock timestamp by the same
 duration.  For example, if you hit ‘S-M-’ to increase a
 clocked-out timestamp by five minutes, then the clocked-in
 timestamp of the next clock is increased by five minutes.

But it doesn't seem to work like that. For example

   * Testing it out
   :LOGBOOK:
   CLOCK: [2023-02-07 Tue 12:35]--[2023-02-07 Tue 12:45] =>  0:10
   CLOCK: [2023-02-07 Tue 12:20]--[2023-02-07 Tue 12:30] =>  0:10
   CLOCK: [2023-02-06 Mon 12:20]--[2023-02-06 Mon 13:20] =>  1:00
   :END:

If I put point on the minutes of 12:30 (second line) and hit S-M-, it moves 
the time to 12:35, but nothing else moves. Based on the docs, I thought it 
would shift one of the other lines.

Rob


Emacs  : GNU Emacs 28.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 
Version 10.14.6 (Build 18G95))
 of 2022-09-12
Package: Org mode version 9.5.5 (release_9.5.5 @ 
/Applications/Emacs.app/Contents/Resources/lisp/org/)