* Avoiding open buffers when clocking in
@ 2015-09-22 15:50 Julian M. Burgos
2015-09-22 16:17 ` Kyle Meyer
0 siblings, 1 reply; 4+ messages in thread
From: Julian M. Burgos @ 2015-09-22 15:50 UTC (permalink / raw)
To: org-mode mailing list
Dear list,
When clocking in at some particular task, org-mode opens all my agenda
files (I assume to check if there are dangling clocks). I have many
agenda files, and I rather avoid opening tons of new buffers. Is there any
way to make org-mode not check for dangling clocks in other agenda
files? I only clock time in a single file (my journal.org file), so
I know already that there will not be dangling clocks in other files.
Or it is possible to automatically close the buffers *after* the check for dangling
clocks is done?
Many thanks,
Julian
--
Julian Mariano Burgos, PhD
Hafrannsóknastofnun/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax: +354-5752001
Netfang/Email: julian@hafro.is
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Avoiding open buffers when clocking in
2015-09-22 15:50 Avoiding open buffers when clocking in Julian M. Burgos
@ 2015-09-22 16:17 ` Kyle Meyer
2015-09-22 16:34 ` Julian M. Burgos
0 siblings, 1 reply; 4+ messages in thread
From: Kyle Meyer @ 2015-09-22 16:17 UTC (permalink / raw)
To: Julian M. Burgos; +Cc: org-mode mailing list
"Julian M. Burgos" <julian@hafro.is> writes:
> When clocking in at some particular task, org-mode opens all my agenda
> files (I assume to check if there are dangling clocks). I have many
> agenda files, and I rather avoid opening tons of new buffers. Is there any
> way to make org-mode not check for dangling clocks in other agenda
> files?
If you're ok with disabling automatic clock resolution entirely, setting
org-clock-auto-clock-resolution to nil should work.
--
Kyle
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Avoiding open buffers when clocking in
2015-09-22 16:17 ` Kyle Meyer
@ 2015-09-22 16:34 ` Julian M. Burgos
2015-09-22 16:47 ` Julian M. Burgos
0 siblings, 1 reply; 4+ messages in thread
From: Julian M. Burgos @ 2015-09-22 16:34 UTC (permalink / raw)
To: Kyle Meyer; +Cc: org-mode mailing list
Thanks Kyle, I did not knew this one. I was manually using this
function
(defun only-current-buffer ()
(interactive)
(mapc 'kill-buffer (cdr (buffer-list (current-buffer)))))
to kill all buffers after clocking in, but your solution is simpler.
Kyle Meyer writes:
> "Julian M. Burgos" <julian@hafro.is> writes:
>
>> When clocking in at some particular task, org-mode opens all my agenda
>> files (I assume to check if there are dangling clocks). I have many
>> agenda files, and I rather avoid opening tons of new buffers. Is there any
>> way to make org-mode not check for dangling clocks in other agenda
>> files?
>
> If you're ok with disabling automatic clock resolution entirely, setting
> org-clock-auto-clock-resolution to nil should work.
--
Julian Mariano Burgos, PhD
Hafrannsóknastofnun/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax: +354-5752001
Netfang/Email: julian@hafro.is
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Avoiding open buffers when clocking in
2015-09-22 16:34 ` Julian M. Burgos
@ 2015-09-22 16:47 ` Julian M. Burgos
0 siblings, 0 replies; 4+ messages in thread
From: Julian M. Burgos @ 2015-09-22 16:47 UTC (permalink / raw)
To: Kyle Meyer; +Cc: org-mode mailing list
Actually, the solution is obvious... I should think before posting.
(defun my-org-clock-in ()
"Clock in and close all unmodified buffers."
(interactive)
(org-clock-in)
(mapc 'kill-buffer (cdr (buffer-list (current-buffer))))
)
Julian M. Burgos writes:
> Thanks Kyle, I did not knew this one. I was manually using this
> function
>
> (defun only-current-buffer ()
> (interactive)
> (mapc 'kill-buffer (cdr (buffer-list (current-buffer)))))
>
> to kill all buffers after clocking in, but your solution is simpler.
>
>
>
> Kyle Meyer writes:
>
>> "Julian M. Burgos" <julian@hafro.is> writes:
>>
>>> When clocking in at some particular task, org-mode opens all my agenda
>>> files (I assume to check if there are dangling clocks). I have many
>>> agenda files, and I rather avoid opening tons of new buffers. Is there any
>>> way to make org-mode not check for dangling clocks in other agenda
>>> files?
>>
>> If you're ok with disabling automatic clock resolution entirely, setting
>> org-clock-auto-clock-resolution to nil should work.
--
Julian Mariano Burgos, PhD
Hafrannsóknastofnun/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax: +354-5752001
Netfang/Email: julian@hafro.is
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-09-22 17:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-22 15:50 Avoiding open buffers when clocking in Julian M. Burgos
2015-09-22 16:17 ` Kyle Meyer
2015-09-22 16:34 ` Julian M. Burgos
2015-09-22 16:47 ` Julian M. Burgos
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).