From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [bug] Code blocks (in a LOB) are not ingested anymore Date: Sat, 03 Dec 2011 07:52:48 -0700 Message-ID: <87fwh1lnap.fsf@gmx.com> References: <80pqg772o9.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWqxe-0004tj-Us for emacs-orgmode@gnu.org; Sat, 03 Dec 2011 09:53:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWqxc-0003TL-V7 for emacs-orgmode@gnu.org; Sat, 03 Dec 2011 09:53:06 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:35555) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RWqxc-0003TG-NX for emacs-orgmode@gnu.org; Sat, 03 Dec 2011 09:53:04 -0500 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org Hi Seb, I *do* get a single code block loaded when running your ECM. What values does the `org-babel-src-name-regexp' variable have on your system? If it is not equal to "^[ ]*#\\+name:[ ]*" then my guess is that you have old versions of Org-mode defining this variable, and these definitions are not updated when you load the newer Org-mode over-top. Please see the bottom of the following commit message for an explanation and a workaround. http://orgmode.org/w/?p=org-mode.git;a=commit;h=7e93b90f8816346a16ad49cee22870b17c05b211 If you are using the development version of Emacs24 this problem will be resolved after Org-mode pushes to Emacs in the coming weeks. Best -- Eric "Sebastien Vauban" writes: > #+TITLE: ECM for code blocks not being ingested anymore > #+DATE: 2011-12-02 > #+PROPERTY: eval yes > > * Overview > > Ingesting a LOB file does not load its code blocks anymore -- as if the file > was empty, or if there were no code blocks at all in it! > > * Test case > > ** How many blocks? > > There is 1 block in this file. That's what this code block should answer. > > #+begin_src emacs-lisp :exports results > (org-babel-lob-ingest (buffer-file-name)) > #+end_src > > #+results: > : 0 > > While a couple of days ago, it correctly answered "1", now it answers "0" as > you can see/test. > > ** Block to be found > > #+name: defvar-now > #+begin_src sql > DECLARE @now smalldatetime > -- implementation is not important in this context! > #+end_src > > Best regards, > Seb -- Eric Schulte http://cs.unm.edu/~eschulte/