From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: how to make org-clock-in close the files it opens Date: Tue, 02 Aug 2011 11:45:45 -0500 Message-ID: <87zkjr7oee.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoI6H-0002Ko-U1 for emacs-orgmode@gnu.org; Tue, 02 Aug 2011 12:45:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QoI6G-0007ZB-Pp for emacs-orgmode@gnu.org; Tue, 02 Aug 2011 12:45:49 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:55771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoI6G-0007Yt-Jb for emacs-orgmode@gnu.org; Tue, 02 Aug 2011 12:45:48 -0400 In-Reply-To: (Julian Burgos's message of "Tue, 2 Aug 2011 13:18:41 +0000") 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: Julian Burgos Cc: emacs-orgmode@gnu.org Julian Burgos writes: > When using org-clock-in, all files in my agenda list are opened. This > makes sense, as org mode is looking for clocks already opened. But it > is possible to make org mode to close all these files? I was going to suggest M-x org-agenda-exit, but that does not work because neither org-resolve-clocks nor org-find-open-clocks add the files they open to org-agenda-new-buffers. As a workaround you could feed a list of files to org-release-buffers. > I do keep lots of files in my agenda, and it is a pain to have to > close them by hand. Many thanks, Might I ask why you would like to close your agenda files? They will be reopened when you call the agenda. Best, Matt