From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [bug, babel] export corruption bug and 3 more bugs Date: Thu, 02 Jun 2011 12:19:04 -0600 Message-ID: <87aae0ay3d.fsf@gmail.com> References: <87hb8glp7d.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSCgF-000342-4d for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 14:31:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSCgD-0004yg-Jv for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 14:31:39 -0400 Received: from mail-px0-f179.google.com ([209.85.212.179]:57951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSCbe-00048o-9B for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 14:26:54 -0400 Received: by pxi2 with SMTP id 2so655563pxi.38 for ; Thu, 02 Jun 2011 11:26:52 -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: David Maus Cc: emacs-orgmode@gnu.org, mail@christianmoe.com Hi David, Sorry it took me a while to notice this thread -- incidentally after a patch to this effect was shared by Lawrence Mitchell in a separate thread. I've just applied Lawrence's patch, which should resolve this issue as well. Please let me know if the problem remains. Now that this thread is on my radar I should be more attentive to it. Thanks -- Eric David Maus writes: > At Wed, 25 May 2011 09:58:03 -0700, > Samuel Wales wrote: >> >> Minimal .emacs and test case for export corruption bug. > > Okay, I can reproduce the args out of range with Emacs 22. Turns out > that `regexp-opt` behaves different when creating > `org-babel-result-regexp'. > > (regexp-opt org-babel-data-names) > > encloses the regexp for babel data names in a shy grouping construct > in Emacs 23 > > (regexp-opt org-babel-data-names) => "\\(?:DATA\\|RES\\(?:NAME\\|ULTS\\)\\|TBLNAME\\)" > > While it does not in Emacs 22 > > (regexp-opt org-babel-data-names) => "DATA\\|RES\\(?:NAME\\|ULTS\\)\\|TBLNAME" > > Thus the literal string "results" in the example file is matched by > Org Babel in `org-exp-res/src-name-cleanup'. > > Looks like setting up `org-babel-result-regexp' should do a check for > the Emacs version and explictly add the shy grouping construct if > version < 23 -- I'm really not familar with all the Babel parts so Cc: > Erik Schulte who I assume knows Babel better than me. > > I'll check the other (compatibilty) problems during the weekend. > > Best, > -- David > -- > OpenPGP... 0x99ADB83B5A4478E6 > Jabber.... dmjena@jabber.org > Email..... dmaus@ictsoc.de -- Eric Schulte http://cs.unm.edu/~eschulte/