From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Girard Subject: Re: [Babel] org-babel-execute-buffer gives different results than org-babel-exp-non-block-elements Date: Thu, 22 Aug 2013 22:28:27 +0200 Message-ID: References: <87y57twot4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a11c3eee419f0fe04e48f237f Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCbUv-000116-CV for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 16:28:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCbUu-0002Li-ES for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 16:28:49 -0400 Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]:59117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCbUu-0002K3-4f for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 16:28:48 -0400 Received: by mail-la0-f44.google.com with SMTP id eo20so1900669lab.3 for ; Thu, 22 Aug 2013 13:28:47 -0700 (PDT) In-Reply-To: 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: Nicolas Goaziou Cc: emacs-orgmode --001a11c3eee419f0fe04e48f237f Content-Type: text/plain; charset=ISO-8859-1 Sorry again for the buggy minimal example. Please try again with the attached version. Instructions as before: 1. Evaluate the elisp code contained in the section "Code to evaluate", either by executing =(org-babel-load-file buffer-file-name)=, or by evaluating manually each function using =C-x C-e= 2. Run the small tests contained in the section "Transclusion tests" using =(org-babel-execute-buffer)=. This will behave as expected 3. Restore the buffer to its original contents using =C-_= 4. Now, run =(org-babel-exp-non-block-elements (point-min) (point-max))= and compare with the behaviour in step (2.) --001a11c3eee419f0fe04e48f237f Content-Type: application/octet-stream; name="transclusion.org" Content-Disposition: attachment; filename="transclusion.org" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hkofa40y1 IytBVVRIT1I6IE5pY29sYXMgR2lyYXJkIDxnaXJhcmQubmljb2xhc0BnbWFpbC5jb20+CgoqIElu c3RydWN0aW9ucwo6UFJPUEVSVElFUzoKOlZJU0lCSUxJVFk6IGFsbAo6RU5EOgoKMS4gRXZhbHVh dGUgdGhlIGVsaXNwIGNvZGUgY29udGFpbmVkIGluIHRoZSBzZWN0aW9uICJDb2RlIHRvIGV2YWx1 YXRlIiwgZWl0aGVyIGJ5IGV4ZWN1dGluZyA9KG9yZy1iYWJlbC1sb2FkLWZpbGUgYnVmZmVyLWZp bGUtbmFtZSk9LCBvciBieSBldmFsdWF0aW5nIG1hbnVhbGx5IGVhY2ggZnVuY3Rpb24gdXNpbmcg PUMteCBDLWU9CjIuIFJ1biB0aGUgc21hbGwgdGVzdHMgY29udGFpbmVkIGluIHRoZSBzZWN0aW9u ICJUcmFuc2NsdXNpb24gdGVzdHMiIHVzaW5nID0ob3JnLWJhYmVsLWV4ZWN1dGUtYnVmZmVyKT0u IFRoaXMgd2lsbCBiZWhhdmUgYXMgZXhwZWN0ZWQKMy4gUmVzdG9yZSB0aGUgYnVmZmVyIHRvIGl0 cyBvcmlnaW5hbCBjb250ZW50cyB1c2luZyA9Qy1fPQo0LiBOb3csIHJ1biA9KG9yZy1iYWJlbC1l eHAtbm9uLWJsb2NrLWVsZW1lbnRzIChwb2ludC1taW4pIChwb2ludC1tYXgpKT0gYW5kIGNvbXBh cmUgd2l0aCB0aGUgYmVoYXZpb3VyIGluIHN0ZXAgKDIuKQoqIENvZGUgdG8gZXZhbHVhdGUKRXZh bHVhdGUgd2l0aDogKG9yZy1iYWJlbC1sb2FkLWZpbGUgYnVmZmVyLWZpbGUtbmFtZSkKCioqIG5n L2RlY29kZS1saW5rCiMrQkVHSU5fU1JDIGVtYWNzLWxpc3AKICAoZGVmdW4gbmcvZGVjb2RlLWxp bmsgKHMpCiAgICAiW1t4XVt5XV0gLT4gKHggLiB5KSIKICAgIChsZXQgKGRlc2MgbGluaykKICAg ICAgKHdoZW4KICAgICAgICAgIChzdHJpbmctbWF0Y2ggb3JnLWJyYWNrZXQtbGluay1yZWdleHAg cykKICAgICAgICAoc2V0cSBkZXNjIChpZiAobWF0Y2gtZW5kIDMpIChvcmctbWF0Y2gtc3RyaW5n LW5vLXByb3BlcnRpZXMgMyBzKSkpCiAgICAgICAgKHNldHEgbGluayAob3JnLWxpbmstdW5lc2Nh cGUKICAgICAgICAgICAgICAgICAgICAob3JnLW1hdGNoLXN0cmluZy1uby1wcm9wZXJ0aWVzIDEg cykpKQogICAgICAgIChjb25zIGxpbmsgZGVzYykpKSkKIytFTkRfU1JDCioqIG5nL2dldC1zeW1s aW5rLWlkCiMrQkVHSU5fU1JDIGVtYWNzLWxpc3AKICAoZGVmdW4gbmcvZ2V0LXN5bWxpbmstaWQg KHMpCiAgICAiW1tpZDo4ODgtNzddW2ZmZmZdXSAtPiA4ODgtNzciCiAgICAod2hlbiAKICAgICAg KGFuZCAoc3RyaW5nLW1hdGNoIG9yZy1icmFja2V0LWxpbmstcmVnZXhwIHMpCiAgICAgICAgICAg KHNldHEgcyAobWF0Y2gtc3RyaW5nIDEgcykpCiAgICAgICAgICAgKHN0cmluZy1tYXRjaCAiXmlk XFw6XFwoW15dW10rXFwpIiBzKSkKICAgICAgKG1hdGNoLXN0cmluZyAxIHMpCiAgICAgICkpCiMr RU5EX1NSQwoqKiBuZy9kZWxldGUtY3VycmVudC1saW5lCiMrQkVHSU5fU1JDIGVtYWNzLWxpc3AK ICAoZGVmdW4gbmcvZGVsZXRlLWN1cnJlbnQtbGluZSAoKQogICAgKGxldCAoKGIgKHBvaW50LWF0 LWJvbCkpCiAgICAgICAgICAoZSAoKyAxIChwb2ludC1hdC1lb2wpKSkpCiAgICAgIChkZWxldGUt cmVnaW9uIGIgZSkpKQojK0VORF9TUkMKKiogbmcvb3JnLXRjCiMrQkVHSU5fU1JDIGVtYWNzLWxp c3AKICAoZGVmdW4gbmcvb3JnLXRjIChzKQogICAgKGxldCogKChhdC1oZWFkaW5nLXAgKG9yZy1h dC1oZWFkaW5nLXApKQogICAgICAgICAgIChkZWMgKG5nL2RlY29kZS1saW5rIHMpKQogICAgICAg ICAgIChsaW5rIChmaXJzdCBkZWMpKQogICAgICAgICAgIChuZXctdGl0bGUgKHJlc3QgZGVjKSkK ICAgICAgICAgICAoaWQgKG9yIChuZy9nZXQtc3ltbGluay1pZCBzKSBsaW5rKSkKICAgICAgICAg ICAobHYtcHJvcCAiX0NVUlJFTlRfTEVWRUxfIikKICAgICAgICAgICAoY3Vyci1sdiAob3IgKG9y Zy1jdXJyZW50LWxldmVsKSAwKSkpCiAgICAgICh1bmxlc3MgaWQKICAgICAgICAoZXJyb3IgKGZv cm1hdCAiTm8gaWQgZm91bmQ6ICVzIiBzKSkpCiAgICAgIChuZy9kZWxldGUtY3VycmVudC1saW5l KQogICAgICAoc2F2ZS1leGN1cnNpb24KICAgICAgICAoc2F2ZS13aW5kb3ctZXhjdXJzaW9uCiAg ICAgICAgICAob3JnLWlkLW9wZW4gaWQpCiAgICAgICAgICAob3JnLWNvcHktc3VidHJlZSkpKQog ICAgICAod2l0aC10ZW1wLWJ1ZmZlcgogICAgICAgIChvcmctbW9kZSkKICAgICAgICAob3JnLXBh c3RlLXN1YnRyZWUgY3Vyci1sdiBuaWwgbmlsKQogICAgICAgIChvcmctZGVsZXRlLXByb3BlcnR5 ICJJRCIpIDsgcHJldmVudHMgSUQgZHVwbGljYXRpb24gaWYgYW4gZW50cnkgZ2V0cyBwYXN0ZWQg c2V2ZXJhbCB0aW1lcwogICAgICAgIChvcmctYmFjay10by1oZWFkaW5nKQogICAgICAgIChpZiBh dC1oZWFkaW5nLXAKICAgICAgICAgIChwcm9nbgogICAgICAgICAgICA7IFJlbmFtZSB0aGUgaGVh ZGluZwogICA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