From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Julian M. Burgos" Subject: Re: Avoiding open buffers when clocking in Date: Tue, 22 Sep 2015 16:47:33 +0000 Message-ID: References: <87mvweh1i0.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeQjC-0008JF-5S for emacs-orgmode@gnu.org; Tue, 22 Sep 2015 12:47:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZeQj9-0004wc-FK for emacs-orgmode@gnu.org; Tue, 22 Sep 2015 12:47:38 -0400 Received: from hafgarpur.hafro.is ([130.208.64.48]:40114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeQj9-0004wE-43 for emacs-orgmode@gnu.org; Tue, 22 Sep 2015 12:47:35 -0400 In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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 ()=20 > (interactive) = =20 > (mapc 'kill-buffer (cdr (buffer-list (current-buffer))))) > > to kill all buffers after clocking in, but your solution is simpler. =20 > > > > Kyle Meyer writes: > >> "Julian M. Burgos" writes: >> >>> When clocking in at some particular task, org-mode opens all my agend= a >>> 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 the= re 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, setti= ng >> org-clock-auto-clock-resolution to nil should work. --=20 Julian Mariano Burgos, PhD Hafranns=C3=B3knastofnun/Marine Research Institute Sk=C3=BAlagata 4, 121 Reykjav=C3=ADk, Iceland S=C3=ADmi/Telephone : +354-5752037 Br=C3=A9fs=C3=ADmi/Telefax: +354-5752001 Netfang/Email: julian@hafro.is