From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: [bug, babel] export corruption bug and 3 more bugs Date: Fri, 27 May 2011 06:52:54 +0200 Message-ID: <87hb8glp7d.wl%dmaus@ictsoc.de> References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Fri_May_27_06:52:51_2011-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPp2j-0000Fn-6E for emacs-orgmode@gnu.org; Fri, 27 May 2011 00:53:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPp2i-0004kX-4n for emacs-orgmode@gnu.org; Fri, 27 May 2011 00:53:01 -0400 Received: from mail.xlhost.de ([213.202.242.118]:59097 helo=mysql1.xlhost.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPp2i-0004kT-0T for emacs-orgmode@gnu.org; Fri, 27 May 2011 00:53:00 -0400 In-Reply-To: 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: Samuel Wales Cc: emacs-orgmode@gnu.org, mail@christianmoe.com --pgp-sign-Multipart_Fri_May_27_06:52:51_2011-1 Content-Type: text/plain; charset=US-ASCII 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 --pgp-sign-Multipart_Fri_May_27_06:52:51_2011-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iF4EABEIAAYFAk3fLiMACgkQma24O1pEeOYh6QD/ZFd1e4FDlPHAiJh8hrHmsXrb +JfOu4JGnp4LtCcEeW8BAJG3cXKaPmaxYFzoHePzPXGJO9DT3qKYD0cts35btFf2 =3lEJ -----END PGP SIGNATURE----- --pgp-sign-Multipart_Fri_May_27_06:52:51_2011-1--