emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [Babel] Getting Info On Empty Source Block Fails


From: aditya siram
Subject: [O] [Babel] Getting Info On Empty Source Block Fails
Date: Fri, 13 Sep 2013 09:31:40 -0500

Hi all,
`org-babel-get-src-block-info` on an empty block fails.

Given:
#+BEGIN_SRC c
#+END_SRC

#+BEGIN_SRC c
non-empty
#+END_SRC

Running `org-babel-get-src-block-info` with point at the beginning of the first line gives:
("c" "#+END_SRC

#+BEGIN_SRC c
non-empty" ((:colname-names) (:rowname-names) (:result-params "replace") (:result-type . value) (:comments . "") (:shebang . "") (:cache . "no") (:padline . "") (:noweb . "no") (:tangle . "no") (:exports . "code") (:results . "replace") ...) "" nil 0 8)

The problem is somewhere in `org-babel-src-block-regex` but I didn't want to mess with it because it touches all parts of org-babel and I'm not sure what else would break.

Any advice on how to fix this is appreciated.
-deech



reply via email to

[Prev in Thread] Current Thread [Next in Thread]