From mboxrd@z Thu Jan 1 00:00:00 1970 From: daimrod Subject: bug in orgmode parsing of results Date: Tue, 27 Dec 2016 14:36:55 +0100 Message-ID: <38887d7f-355f-65c4-b3f9-ab347780b9c4@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1ifUj67X92rjpx73w78ixeMqKXxP7FJnk" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLrw9-0002Hg-Ln for emacs-orgmode@gnu.org; Tue, 27 Dec 2016 08:37:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cLrw4-0004eZ-O5 for emacs-orgmode@gnu.org; Tue, 27 Dec 2016 08:37:05 -0500 Received: from mail-wj0-x236.google.com ([2a00:1450:400c:c01::236]:34939) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cLrw4-0004eI-Hj for emacs-orgmode@gnu.org; Tue, 27 Dec 2016 08:37:00 -0500 Received: by mail-wj0-x236.google.com with SMTP id v7so318831568wjy.2 for ; Tue, 27 Dec 2016 05:36:58 -0800 (PST) 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" To: emacs-orgmode This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --1ifUj67X92rjpx73w78ixeMqKXxP7FJnk Content-Type: multipart/mixed; boundary="3WWERTKxVdrSWR0PfF4VpNnTp8stH9FeN"; protected-headers="v1" From: daimrod To: emacs-orgmode Message-ID: <38887d7f-355f-65c4-b3f9-ab347780b9c4@gmail.com> Subject: bug in orgmode parsing of results --3WWERTKxVdrSWR0PfF4VpNnTp8stH9FeN Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, I've found what I think is a bug in orgmode parsing. When the following file is parsed : * Test #+BEGIN_SRC emacs-lisp :exports results :results raw drawer (format "- Test2") #+END_SRC #+RESULTS: :RESULTS: - Test2 :END: The truncated result of `org-element-parse-buffer' is : (src-block (:language \"emacs-lisp\" :switches nil :parameters \":exports results :results raw drawer\" :begin 8 :end 98 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value \"(format \\\"- Test2\\\")\\n\" :post-blank 1 :post-affiliated 8 :parent #2)) (drawer (:begin 98 :end 133 :drawer-name \"RESULTS\" :contents-begin 119 :contents-end 127 :post-blank 0 :post-affiliated 109 :results (\"\") :parent #2)) That is, it generates a DRAWER, which seems correct. However, when the following file is parsed : * Test #+BEGIN_SRC emacs-lisp :exports results :results raw drawer (format "* Test2") #+END_SRC #+RESULTS: :RESULTS: * Test2 :END: The (truncated) result of `org-element-parse-buffer' is : (src-block (:language \"emacs-lisp\" :switches nil :parameters \":exports results :results raw drawer\" :begin 8 :end 98 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value \"(format \\\"* Test2\\\")\\n\" :post-blank 1 :post-affiliated 8 :parent #2)) (paragraph (:begin 98 :end 119 :contents-begin 109 :contents-end 119 :post-blank 0 :post-affiliated 109 :results (\"\") :parent #2) #(\":RESULTS:\\n\" 0 10 (:parent #3))) That is, it generates a PARAGRAPH which seems incorrect. WDYT? --3WWERTKxVdrSWR0PfF4VpNnTp8stH9FeN-- --1ifUj67X92rjpx73w78ixeMqKXxP7FJnk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIvBAEBCAAZBQJYYm53EhxkYWltcm9kQGdtYWlsLmNvbQAKCRATc1R3K2UYlD3A D/9ycQzTrIqEynZL1hFOw6CHUXTF4bFN8ECx3Scnkz7B/HdERcSP2BGkhcyJHh8l NQsywi2O/tZVlsy7EvFPeA4JvIcQiooAVeLqbnwmGkwDWGtQ5o/B89hU0bnS7kr+ qoWVLccIRVlnxQFKLLb8oRfTCQvfOh8IyFSNtOM/pf/Zq9o7YQ0AssKEiVPle0Ii HlE3HduXgaIP0NlkDdybY6hKa5b7URjJw8JJAep4O4xKSMtPZPRigDeFw22ixcQ3 aILTOGne2kjlmeohGeGY9mkcpVqFMXhdRnvaxdl9dPrUmqaMtTwCg0sZ93f/9GbZ KU7WMBwWCnOzeJSjft6HudeIyYNuR3DL7vZnKEvbcqdyWN24/A8CtKONUGB9BpjB GMfYaGtCso1HbIXGb1Mf+gNCESLp6RkvjPmWGbFZIXjAij441WnkiK7Bh35tym8C q71zfsStk93xOsS1t34CinOOEjlSvuaqlD8GqeBULkKxsrE+jF3zOhmpNHb698xf 0skwK3HKbw+rVGuyqPaFm8MPYRgDYEL0G6eqWKzhtCIe3hyVSJOQm9HGkGlEXtBj TYg0hx4lkZ+JKoJQblskvq2rnZGlqMzavbHsjArE8BNdxeEM+2GEhp3VcIb33mIt HkBu3TUz0n3lyS5+dh88UXA1YP55bDdc5vFqwGhPdeKwkA== =W7Q6 -----END PGP SIGNATURE----- --1ifUj67X92rjpx73w78ixeMqKXxP7FJnk--