Re: [BUG] org-clock-in opens buffers for all agenda files

2024-02-14 Thread Ihor Radchenko
jman  writes:

> Why checking for dangling clocks in all files in `org-directory`?

Not in `org-directory', but all agenda files + all open Org buffers.

> .. Is it a common usecase to have clocks split in different files?

Yes, for some users.

> ... I'd like `org-clock-in` to close any running clocks but only check
> the file open in current buffer and not in all .org files in
> `org-directory`.

This is currently not possible.
Patches welcome though.

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



Re: [BUG] org-clock-in opens buffers for all agenda files

2024-02-13 Thread jman


I am a bit confused and I am probably missing some context.

The documentation of `org-clock-auto-clock-resolution` states: "When to 
automatically resolve open clocks found in Org buffers." and the options are 
"Never", "Always", "When no clock is running".

I think I understand the idea behind this variable but I can't relate that to a 
solution of the problem stated.

Why checking for dangling clocks in all files in `org-directory`? Is it a 
common usecase to have clocks split in different files? I'd like `org-clock-in` 
to close any running clocks but only check the file open in current buffer and 
not in all .org files in `org-directory`.

Thanks for any help!



[BUG] org-clock-in opens buffers for all agenda files

2023-01-21 Thread Tom Gillespie
I just tried to clock in to a task for the first time
in ... a while, and was immediately accosted with
hundreds of buffers being opened.

This seems to be because org-clock-in somehow
calls org-agenda or org-agenda-prepare or something
similar, however I cannot find the call site.

Is there a way to disable this so that clocking does not
destroy my emacs buffer state by starting org-agenda?

Thanks!
Tom



Re: [BUG] org-clock-in opens buffers for all agenda files

2023-01-21 Thread Tom Gillespie
> This is because Org is checking if you have any dangling clocks present.

Seems like a reasonable default.

> See org-clock-auto-clock-resolution

Perfect solution for my case. Thanks!



Re: [BUG] org-clock-in opens buffers for all agenda files

2023-01-21 Thread Ihor Radchenko
Tom Gillespie  writes:

> I just tried to clock in to a task for the first time
> in ... a while, and was immediately accosted with
> hundreds of buffers being opened.

This is because Org is checking if you have any dangling clocks present.

>
> Is there a way to disable this so that clocking does not
> destroy my emacs buffer state by starting org-agenda?

See org-clock-auto-clock-resolution

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