emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Christopher Genovese <genovese@cmu.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: 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	[thread overview]
Message-ID: <87vble7hc5.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAPum5FgRdZ7vOir5o5ULS+H6TLpLCjTrRjWPXx1CkQGXrjaZEA@mail.gmail.com> (Christopher Genovese's message of "Sat, 13 Dec 2014 18:49:58 -0500")

Hello,

Christopher Genovese <genovese@cmu.edu> 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	other threads:[~2014-12-14  8:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-13 23:49 Tangling does not detect src blocks with capital BEGIN_SRC/END_SRC when case-fold-search nil Christopher Genovese
2014-12-14  8:42 ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vble7hc5.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=genovese@cmu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).