From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou 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 Message-ID: <87vble7hc5.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y04kO-00045Z-3t for emacs-orgmode@gnu.org; Sun, 14 Dec 2014 03:41:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y04kG-0001fg-CU for emacs-orgmode@gnu.org; Sun, 14 Dec 2014 03:41:48 -0500 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:46240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y04kG-0001fU-64 for emacs-orgmode@gnu.org; Sun, 14 Dec 2014 03:41:40 -0500 In-Reply-To: (Christopher Genovese's message of "Sat, 13 Dec 2014 18:49:58 -0500") 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: Christopher Genovese Cc: emacs-orgmode@gnu.org Hello, Christopher Genovese writes: > When tangling a file whose source code blocks have capitalized BEGIN_SRC and > END_SRC (as produced by 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