emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: [BUG] Clocktable error with multiple source files from parent dir
Date: Mon, 09 Sep 2013 16:57:57 +0200	[thread overview]
Message-ID: <86txhu59fu.fsf@somewhere.org> (raw)

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

                 reply	other threads:[~2013-09-09 14:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86txhu59fu.fsf@somewhere.org \
    --to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).