From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Alekseyev Subject: Re: org-babel order of evaluation Date: Fri, 20 Jan 2012 11:58:57 -0600 Message-ID: References: <20120112002506.GA26183@BigDog.local> <87y5td7z2t.fsf@gmx.com> <20120112225129.GA26670@BigDog.local> <87ipkgqu8w.fsf@gmx.com> <20120113015244.GA27002@BigDog.local> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=14dae9c09e0659652104b6f96fc0 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoIjt-0004Uo-1q for emacs-orgmode@gnu.org; Fri, 20 Jan 2012 12:59:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoIjr-0001aJ-LM for emacs-orgmode@gnu.org; Fri, 20 Jan 2012 12:59:00 -0500 Received: from mail-pw0-f41.google.com ([209.85.160.41]:56321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoIjr-0001a6-9L for emacs-orgmode@gnu.org; Fri, 20 Jan 2012 12:58:59 -0500 Received: by pbdu6 with SMTP id u6so553582pbd.0 for ; Fri, 20 Jan 2012 09:58:58 -0800 (PST) In-Reply-To: <20120113015244.GA27002@BigDog.local> 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 --14dae9c09e0659652104b6f96fc0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Jan 12, 2012 at 7:52 PM, Rick Frankel wrote: > On Thu, Jan 12, 2012 at 06:07:41PM -0700, Eric Schulte wrote: >> Rick Frankel writes: >> >> Turns out it was not that difficult to change this behavior. =A0You and >> Leo are both correct that in-buffer-order evaluation is more natural and >> expected than the previous behavior. =A0I've just pushed up a fix after >> which evaluating the following Eric, The fix doesn't seem to be working for me when I export the buffer to HTML. The ordering of call and source blocks once again becomes randomized, and in general, exported file is missing a bunch of stuff unless I run org-babel-execute-buffer prior to export. Since the export engine does its own evaluation, it doesn't seem like org-babel-execute-buffer should be a necessity. But I can't run org-babel-execute-buffer on anything with a src_ inline block as it gives me an error. I'm attaching two files which do not export correctly, at least when one doesn't run org-babel-execute-buffer; just do C-c C-e h and look at the output. --Leo --14dae9c09e0659652104b6f96fc0 Content-Type: application/octet-stream; name="test-export4.org" Content-Disposition: attachment; filename="test-export4.org" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gxniivph0 Iytwcm9wZXJ0eTogc2Vzc2lvbiAqUi1iYWJlbCoKCiogZXhwb3J0IGZhaWwKCiMrTkFNRTogZWxv X3NpbV9hbmFseXNpcwojK0hFQURFUjogOnZhciBpZHg9MSA6dmFyIHByaW50PSJUUlVFIiA6dmFy IHBsb3QuZmlsZW5hbWU9ImNvbnYxLnBuZyIgOnZhciBwbG90LmRpc3A9IkZBTFNFIgojK0JFR0lO X1NSQyBSIDpyZXN1bHRzIG91dHB1dCByZXBsYWNlIAogIGlmIChwcmludCA9PSBUUlVFKSB7Y2F0 KCJzb21lIG91dHB1dFxuIil9CiAgCiAgaW1nLmRpciA9ICJpbWFnZXMiCiAgY2F0LmZuYW1lLmxp bmsgPC0gZnVuY3Rpb24oKSB7IGNhdChpbWcuZGlyLCIvIixwbG90LmZpbGVuYW1lLCJcbiIsc2Vw PSIiKSB9IAogIAogIGNhdChpbWcuZGlyLCIvIixwbG90LmZpbGVuYW1lLCJcbiIsc2VwPSIiKQog IAojK0VORF9TUkMKCgpTaG91bGQgaGF2ZSBhbGwgY29udjEgc3R1ZmYKCiMrY2FsbDogZWxvX3Np bV9hbmFseXNpcyhpZHg9MSxwcmludD0iVFJVRSIscGxvdC5maWxlbmFtZT0iY29udjEucG5nIixw bG90LmRpc3A9IkZBTFNFIikKCnNyY19SWzpyZXN1bHRzIG91dHB1dCByZXBsYWNlXXsgY2F0LmZu YW1lLmxpbmsoKSB9CgpTaG91bGQgaGF2ZSBhbGwgY29udjIgc3R1ZmYgCgojK2NhbGw6IGVsb19z aW1fYW5hbHlzaXMoaWR4PTgscHJpbnQ9IlRSVUUiLHBsb3QuZmlsZW5hbWU9ImNvbnYyLnBuZyIs cGxvdC5kaXNwPSJGQUxTRSIpCgpzcmNfUls6cmVzdWx0cyBvdXRwdXQgcmVwbGFjZV17IGNhdC5m bmFtZS5saW5rKCkgfSAKClNob3VsZCBoYXZlIGFsbCBjb252MyBzdHVmZgojK2NhbGw6IGVsb19z aW1fYW5hbHlzaXMoaWR4PTEscHJpbnQ9IlRSVUUiLHBsb3QuZmlsZW5hbWU9ImNvbnYzLnBuZyIs cGxvdC5kaXNwPSJGQUxTRSIpCgpzcmNfUls6cmVzdWx0cyBvdXRwdXQgcmVwbGFjZV17IGNhdC5m bmFtZS5saW5rKCkgfSAKClNob3VsZCBoYXZlIGFsbCBjb252NCBzdHVmZgoKIytjYWxsOiBlbG9f c2ltX2FuYWx5c2lzKGlkeD0xLHByaW50PSJUUlVFIixwbG90LmZpbGVuYW1lPSJjb252NC5wbmci LHBsb3QuZGlzcD0iRkFMU0UiKQoKc3JjX1JbOnJlc3VsdHMgb3V0cHV0IHJlcGxhY2VdeyBjYXQu Zm5hbWUubGluaygpIH0gCgoK --14dae9c09e0659652104b6f96fc0 Content-Type: application/octet-stream; name="test-export6.org" Content-Disposition: attachment; filename="test-export6.org" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gxnijbnh1 CiMrc3RhcnR1cDogbm9pbmRlbnQKIytwcm9wZXJ0eTogc2Vzc2lvbiAqUi1iYWJlbCoKIytwcm9w ZXJ0eTogdGFuZ2xlIHllcwoKKiBjb2RlCgojK05BTUU6IGVsb19zaW1fYW5hbHlzaXMKIytIRUFE RVI6IDp2YXIgaWR4PTEgOnZhciBwcmludD0iVFJVRSIgOnZhciBwbG90LmZpbG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