* [BUG] org-clock-in opens buffers for all agenda files
@ 2023-01-21 17:44 Tom Gillespie
2023-01-21 18:04 ` Ihor Radchenko
0 siblings, 1 reply; 5+ messages in thread
From: Tom Gillespie @ 2023-01-21 17:44 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG] org-clock-in opens buffers for all agenda files
2023-01-21 17:44 [BUG] org-clock-in opens buffers for all agenda files Tom Gillespie
@ 2023-01-21 18:04 ` Ihor Radchenko
2023-01-21 18:24 ` Tom Gillespie
2024-02-13 14:40 ` jman
0 siblings, 2 replies; 5+ messages in thread
From: Ihor Radchenko @ 2023-01-21 18:04 UTC (permalink / raw)
To: Tom Gillespie; +Cc: emacs-orgmode
Tom Gillespie <tgbugs@gmail.com> 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 <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG] org-clock-in opens buffers for all agenda files
2023-01-21 18:04 ` Ihor Radchenko
@ 2023-01-21 18:24 ` Tom Gillespie
2024-02-13 14:40 ` jman
1 sibling, 0 replies; 5+ messages in thread
From: Tom Gillespie @ 2023-01-21 18:24 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: emacs-orgmode
> 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!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG] org-clock-in opens buffers for all agenda files
2023-01-21 18:04 ` Ihor Radchenko
2023-01-21 18:24 ` Tom Gillespie
@ 2024-02-13 14:40 ` jman
2024-02-14 14:54 ` Ihor Radchenko
1 sibling, 1 reply; 5+ messages in thread
From: jman @ 2024-02-13 14:40 UTC (permalink / raw)
To: yantar92; +Cc: emacs-orgmode, tgbugs
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!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG] org-clock-in opens buffers for all agenda files
2024-02-13 14:40 ` jman
@ 2024-02-14 14:54 ` Ihor Radchenko
0 siblings, 0 replies; 5+ messages in thread
From: Ihor Radchenko @ 2024-02-14 14:54 UTC (permalink / raw)
To: jman; +Cc: emacs-orgmode, tgbugs
jman <emacs-orgmode@city17.xyz> 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 <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-02-14 14:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-21 17:44 [BUG] org-clock-in opens buffers for all agenda files Tom Gillespie
2023-01-21 18:04 ` Ihor Radchenko
2023-01-21 18:24 ` Tom Gillespie
2024-02-13 14:40 ` jman
2024-02-14 14:54 ` Ihor Radchenko
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.