From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: [BUG] Clocktable error with multiple source files from parent dir Date: Mon, 09 Sep 2013 16:57:57 +0200 Message-ID: <86txhu59fu.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello, While generating a clock table report with source data in files from the current directory works, it does not work if there are *more than one* such source file in the parent directory. Yes, I known, the description is strange... Though, it seems to be the criteria... ECM and recipe: 1. Source file `clock-file.org' (with clocking lines) --8<---------------cut here---------------start------------->8--- #+TITLE: Clock file * Tasks Task with a CLOCK line. ** Design *** TODO Do this :LOGBOOK: CLOCK: [2013-06-19 Wed 09:00]--[2013-06-19 Wed 10:11] => 1:11 :END: --8<---------------cut here---------------end--------------->8--- 2. Report file `report-same-level.org', in the same directory --8<---------------cut here---------------start------------->8--- #+TITLE: Reporting * Summary #+BEGIN: clocktable :scope ("./clock-file.org" "./clock-file.org") :block 2013-06 :indent t #+END: --8<---------------cut here---------------end--------------->8--- When updating the dblock, you'll get the right report, in double (as I've included twice the same input file). 3. Report file `report-subdir-level.org', in a sub-directory --8<---------------cut here---------------start------------->8--- #+TITLE: Reporting * Summary #+BEGIN: clocktable :scope ("../clock-file.org" "../clock-file.org") :block 2013-06 :indent t #+END: --8<---------------cut here---------------end--------------->8--- When updating the dblock, you'll get the error: --8<---------------cut here---------------start------------->8--- Non-existent agenda file ../clock-file.org. [R]emove from list or [A]bort? --8<---------------cut here---------------end--------------->8--- Though, if you just put one instance of the source file, you'll get the right report (once, then). In the ECM, I'm using twice the same file, for the sake of simplicity, to reproduce the problem. But it's not due to that. You can get the same error with a local (to the dir) file and one from the parent directory: - :scope ("clock-file.org" "clock-file.org") will work. 2 local files. - :scope ("../clock-file.org" "clock-file.org") as well. 1 local file, 1 from parent directory. - :scope ("clock-file.org" "../clock-file.org") as well. 1 local file, 1 from parent directory. - :scope ("../clock-file.org" "../clock-file.org") WON'T! 2 files from PARENT directory. You can see the bug reproduced in a 37-second video session on http://screencast.com/t/xMCMe9kRU. Best regards, Seb -- Sebastien Vauban