emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Tangling does not detect src blocks with capital BEGIN_SRC/END_S


From: Nicolas Goaziou
Subject: Re: [O] Tangling does not detect src blocks with capital BEGIN_SRC/END_SRC when case-fold-search nil
Date: Sun, 14 Dec 2014 09:42:34 +0100

Hello,

Christopher Genovese <address@hidden> writes:

> When tangling a file whose source code blocks have capitalized BEGIN_SRC and
> END_SRC (as produced by <s-TAB for instance),  org-babel-tangle will not
> detect the source code blocks when case-fold-search is nil.
>
> The variable org-babel-src-block-regexp has the begin_src and end_src in
> lower
> case, and neither the code generated by the macro org-babel-map-src-blocks
> (in
> ob-core.el) nor its caller org-babel-tangle-collect-blocks (in
> ob-tangle.el) set
> case-fold-search dynamically to make this regex match the capitalized
> blocks in
> org-babel-map-src-blocks.
>
> I've included a minimal sample file below, but it's pretty simple to
> reproduce
> with Emacs -q. I also included a simple patch to ob-core.el (in
> org-babel-map-src-blocks)
> that I tested quickly, in case it helps.

I applied this change along with its inline source block counterpart.
Thank you.


Regards,

-- 
Nicolas Goaziou



reply via email to

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