From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Very slow execution, tangling and export with noweb and quick-and-dirty Date: Tue, 01 Sep 2015 13:24:23 +0200 Message-ID: References: <867foae8r4.fsf@example.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWjg4-00022o-CX for emacs-orgmode@gnu.org; Tue, 01 Sep 2015 07:24:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWjg0-0006gi-Ea for emacs-orgmode@gnu.org; Tue, 01 Sep 2015 07:24:36 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:36220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWjg0-0006gA-8k for emacs-orgmode@gnu.org; Tue, 01 Sep 2015 07:24:32 -0400 Received: by wibz8 with SMTP id z8so28604126wib.1 for ; Tue, 01 Sep 2015 04:24:31 -0700 (PDT) In-Reply-To: <867foae8r4.fsf@example.com> (Sebastien Vauban's message of "Tue, 01 Sep 2015 12:25:51 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Sebastien Vauban writes: > Rainer M Krug writes: >> Rainer M Krug writes: >>> I have a rather extensive literate programming document with several >>> hundred code blocks. In two subtrees, I use :noweb. Each of these has >>> one noweb block which is located onder the first level header, and >>> used several times in the sub-sections of this tree. >>> >>> But even with the quick-and-dirty option >>> >>> ,---- >>> | #+BIND: org-babel-use-quick-and-dirty-noweb-expansion "t" >>> `---- >> >> Hm - I just realised that despite having this #+BIND: in the file, the >> variable was not set. I set it manually now, and it is fast again. >> >> Shouldn't this BIND set the variable to true? > > IIUC, `BIND' sets the variable to the value you're giving to it at > export-time only (in the temporary buffer created for the export > process). OK - now I understand it. So I should also, in addition to the bind, use a file local variable to set org-babel-use-quick-and-dirty-noweb-expansion to true. Done and working. Thanks, Rainer > > Best regards, > Seb =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQEcBAEBCAAGBQJV5YrsAAoJENvXNx4PUvmCZ3oIAI10xiBf1qqYmday291DNFTL aQyBmh+dRCQapOdQBk2Rtak0y3daRtkCHBT20KKtUxp03kTc9yDYYqqiIdpUBNAc WI7+wmvoLgeCGgqai5WRKAuG4A7+8n76FdbPL1gK2jc0Yc1OUeNwwPoM8saUv0tv IblnyZsB2gt7tAaWUufvLX+uaoGANHptdXDXSl8k4cnN1MUpgR/EiDUPUbKKEt63 R4nz3wVJOTtJYRkZyByXEuSfWlXGsCXRbsGuI6dNl6VpetE1GlnuKW/Rm0X/TN/Q kYm84MV+9ECm93KevhucDj/gRVOjmybbr4nzVWb9QoJIikwLHjbRE5C9PUaxj24= =TaY/ -----END PGP SIGNATURE----- --=-=-=--