From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-resolve-clocks should not iterate over non-agenda org files [8.3.3 (8.3.3-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20160108/) Date: Wed, 20 Jan 2016 14:14:46 +0100 Message-ID: <87oacggzp5.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLsZ8-00066L-EQ for emacs-orgmode@gnu.org; Wed, 20 Jan 2016 08:12:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLsZ7-0001DO-KE for emacs-orgmode@gnu.org; Wed, 20 Jan 2016 08:12:50 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:48340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLsZ7-0001DE-Ea for emacs-orgmode@gnu.org; Wed, 20 Jan 2016 08:12:49 -0500 In-Reply-To: (Derek Feichtinger's message of "Tue, 19 Jan 2016 21:22:48 +0100") 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: Derek Feichtinger Cc: emacs-orgmode@gnu.org Hello, Derek Feichtinger writes: > org-resolve-clock loops over all open org buffers for detecting open > clocks (using function org-files-list). Is this really intended? I think > it should just loop over the org-agenda-files. > > I was working on an extension for clocking and was recording my testing > results > into a separate org file. I also had put there examples of > various clock lines to test regexps against. The example clock lines > effectively prevented me from clocking in to a task from my normal > agenda files. > > Since org has so many usages, I think it should not be assumed that each > org buffer is related to the agenda functionality. Clocking is not just an agenda functionality. Since every Org document can contain clocks, it makes sense to use `org-files-list' instead of `org-agenda-files'. You could test your extension in a dedicated Emacs process, with `org-agenda-files' being nil and Org documents opened piece-wise. Regards, -- Nicolas Goaziou