From: daimrod <daimrod@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: bug in orgmode parsing of results
Date: Tue, 27 Dec 2016 14:36:55 +0100 [thread overview]
Message-ID: <38887d7f-355f-65c4-b3f9-ab347780b9c4@gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1655 bytes --]
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?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 829 bytes --]
next reply other threads:[~2016-12-27 13:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-27 13:36 daimrod [this message]
2016-12-27 18:09 ` bug in orgmode parsing of results Nicolas Goaziou
2016-12-28 13:56 ` daimrod
2016-12-27 18:11 ` Charles C. Berry
2016-12-28 14:03 ` daimrod
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=38887d7f-355f-65c4-b3f9-ab347780b9c4@gmail.com \
--to=daimrod@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.