emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [bug][babel] noweb gotcha


From: Eric Schulte
Subject: Re: [O] [bug][babel] noweb gotcha
Date: Thu, 12 Jun 2014 15:58:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Charles Berry <address@hidden> 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
> | <<print-abc>>
> | <<print-def>>
> | #+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)



reply via email to

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