emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Babel] Getting Info On Empty Source Block Fails
@ 2013-09-13 14:31 aditya siram
  2013-09-13 17:05 ` Eric Schulte
  0 siblings, 1 reply; 3+ messages in thread
From: aditya siram @ 2013-09-13 14:31 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 736 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1048 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-17 22:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-13 14:31 [Babel] Getting Info On Empty Source Block Fails aditya siram
2013-09-13 17:05 ` Eric Schulte
2013-09-17 22:39   ` aditya siram

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).