From mboxrd@z Thu Jan 1 00:00:00 1970 From: aditya siram Subject: [Babel] Getting Info On Empty Source Block Fails Date: Fri, 13 Sep 2013 09:31:40 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdca504de18ba04e644b869 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKUQ6-0005oS-73 for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 10:32:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKUQ1-0000M4-J6 for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 10:32:26 -0400 Received: from mail-ie0-x233.google.com ([2607:f8b0:4001:c03::233]:39364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKUQ1-0000L8-ER for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 10:32:21 -0400 Received: by mail-ie0-f179.google.com with SMTP id e14so2648470iej.38 for ; Fri, 13 Sep 2013 07:32:20 -0700 (PDT) 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: emacs-orgmode@gnu.org --047d7bdca504de18ba04e644b869 Content-Type: text/plain; charset=ISO-8859-1 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 --047d7bdca504de18ba04e644b869 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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-ba= bel-get-src-block-info` with point at the beginning of the first line gives= :
("c" "#+END_SRC

#+BEGIN_SRC c
non-empty" ((:c= olname-names) (:rowname-names) (:result-params "replace") (:resul= t-type . value) (:comments . "") (:shebang . "") (:cach= e . "no") (:padline . "") (:noweb . "no") (:t= angle . "no") (:exports . "code") (:results . "rep= lace") ...) "" 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 o= n how to fix this is appreciated.
-deech


--047d7bdca504de18ba04e644b869--