From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [bug][babel] noweb gotcha Date: Thu, 12 Jun 2014 15:58:31 -0400 Message-ID: <87d2edx4ta.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvBPu-0005JJ-BF for emacs-orgmode@gnu.org; Thu, 12 Jun 2014 16:16:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvBPp-00005r-6v for emacs-orgmode@gnu.org; Thu, 12 Jun 2014 16:16:10 -0400 Received: from mail-ob0-x22f.google.com ([2607:f8b0:4003:c01::22f]:58384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvBPp-00005b-2a for emacs-orgmode@gnu.org; Thu, 12 Jun 2014 16:16:05 -0400 Received: by mail-ob0-f175.google.com with SMTP id wm4so1103477obc.34 for ; Thu, 12 Jun 2014 13:16:04 -0700 (PDT) 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: Charles Berry Cc: emacs-orgmode@gnu.org Charles Berry writes: > 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. > Does this raise any error, or fail silently? Thanks, Eric > > > HTH, > > Chuck > > > -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw)