emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [bug, babel] export corruption bug and 3 more bugs


From: David Maus
Subject: Re: [O] [bug, babel] export corruption bug and 3 more bugs
Date: Fri, 27 May 2011 06:52:54 +0200
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.3 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

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.... address@hidden
Email..... address@hidden

Attachment: pgpIErrTrIJn_.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]