emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Clocktable error with multiple source files from parent dir
@ 2013-09-09 14:57 Sebastien Vauban
  0 siblings, 0 replies; only message in thread
From: Sebastien Vauban @ 2013-09-09 14:57 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-09 14:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-09 14:57 [BUG] Clocktable error with multiple source files from parent dir Sebastien Vauban

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).