From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: [bug][babel] noweb gotcha Date: Wed, 11 Jun 2014 03:30:44 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuZFi-0000FH-1e for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 23:31:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuZFa-0004cO-Ad for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 23:31:05 -0400 Received: from plane.gmane.org ([80.91.229.3]:56781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuZFa-0004cJ-3j for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 23:30:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WuZFY-000663-I2 for emacs-orgmode@gnu.org; Wed, 11 Jun 2014 05:30:56 +0200 Received: from 172-7-166-26.lightspeed.sndgca.sbcglobal.net ([172.7.166.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Jun 2014 05:30:56 +0200 Received: from ccberry by 172-7-166-26.lightspeed.sndgca.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Jun 2014 05:30:56 +0200 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: emacs-orgmode@gnu.org The following ,---- | #+PROPERTY: tangle yes | | #+NAME: print-abc | #+BEGIN_SRC emacs-lisp | (format | "<<%s>>" "abc") | #+END_SRC | | #+NAME: print-def | #+BEGIN_SRC emacs-lisp | (concat | "<<" "def" ">>") | #+END_SRC | | #+BEGIN_SRC emacs-lisp :noweb yes | <> | <> | #+END_SRC `---- tangles as ,---- | (format | "<<%s>>" "abc") | | (concat | "<<" "def" ">>") | | (format | "<<%s>>" "abc") | (concat | "") `---- Note that ""<<" "def" ">>" disappeared from (concat ...). FWIW, adding quotes inside the constant string in org-babel-noweb-wrap: "\\([^ \"\t\n][^\"]+?[^ \"\t]\\|[^ \"\t\n]\\)" fixes this instance. HTH, Chuck