From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Fix clocktable scope parameter Date: Thu, 15 Dec 2016 16:10:31 +0100 Message-ID: <87y3zh5iu0.fsf@nicolasgoaziou.fr> References: <8760ml2q30.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHXg2-0002BT-Oo for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 10:10:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHXfx-0007y5-FR for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 10:10:34 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:38283) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cHXfx-0007xg-8V for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 10:10:29 -0500 In-Reply-To: <8760ml2q30.fsf@gmail.com> (Eduardo Bellani's message of "Thu, 15 Dec 2016 13:02:11 -0200") 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" To: Eduardo Bellani Cc: Org Mode Hello, Eduardo Bellani writes: > org-clock.el: Fix clocktable scope parameter > > * lisp/org-clock.el (org-dblock-write:clocktable): Make sure to eval > the scope if it is a lisp expression, or to return the scope if it > is just a list. > > This adds back to the clocktable the capacity to have as scope both a > list of file paths or a function that returns such a list. Thank you. However, I'd rather not introduce more `eval' in the code base. Instead, you can test if scope is a function and `funcall' it. This is a new feature, which would require some documentation and an entry in ORG-NEWS. Regards, -- Nicolas Goaziou