From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: [babel] evaluating ledger source block now scans large number of org files Date: Fri, 01 Jul 2011 10:07:46 +0100 Message-ID: <87pqlupdwd.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcZhe-0002Dt-3l for emacs-orgmode@gnu.org; Fri, 01 Jul 2011 05:08:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcZha-00034R-44 for emacs-orgmode@gnu.org; Fri, 01 Jul 2011 05:07:57 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:46361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcZhZ-000343-Lv for emacs-orgmode@gnu.org; Fri, 01 Jul 2011 05:07:53 -0400 Received: from 79-67-228-191.dynamic.dsl.as9105.com ([79.67.228.191] helo=localhost) by vscane-b.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1QcZhT-0006yK-DM for emacs-orgmode@gnu.org; Fri, 01 Jul 2011 10:07:47 +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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hello, I don't know what has changed or when but, being the start of a new month, I am doing my finances. I use ledger for this and, of course, within org! Evaluating a ledger source code block now takes a significant amount of time. Babel seems to search org files throughout my disk for IDs. I get messages like this: ,---- | ... | Finding ID locations (13/65 files): ~/git/notes/personal.org | Finding ID locations (14/65 files): ~/git/notes/research.org | Finding ID locations (15/65 files): ~/git/notes/tasks.org | ... `---- I am using ":noweb yes" but otherwise I cannot see why org + babel need to scan files throughout the disk? A minimal example that exhibits this behaviour is attached. Evaluating the second code block generates the lines shown above. Evaluating the first block does not which is why I think this may have something to do with :noweb. Up to date org (see signature below). thanks, eric --=-=-= Content-Type: text/orgmode; charset=utf-8 Content-Disposition: attachment; filename=examplebug.org Content-Transfer-Encoding: quoted-printable Content-Description: ledger babel example # -*- coding: utf-8; -*- #+TITLE: examplebug.org #+AUTHOR: Eric S Fraga #+EMAIL: e.fraga@ucl.ac.uk #+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:nil * finances #+srcname: transactions #+begin_src ledger :noweb yes 2011/06/01 * Income assets:bank =C2=A31000 income:pay 2011/06/30 * Rent expenses:rent =C2=A3500 assets:bank #+end_src #+srcname: balance #+begin_src ledger :cmdline bal :noweb yes <> #+end_src #+results: balance : =C2=A3500 assets:bank : =C2=A3500 expenses:rent : =C2=A3-1000 income:pay : -------------------- : 0 --=-=-= Content-Type: text/plain -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.530.g23bb.dirty) --=-=-=--