From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jherek@t-online.de" Subject: Babel: Why does noweb work differently depending on 'call depth'? Date: Sat, 23 Jun 2018 15:08:42 +0200 (CEST) Message-ID: <1529759322663.440746.e1992439432bfc672ed4174d1eaa1eec843c3b21@spica.telekom.de> Reply-To: "Jherek@t-online.de" Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWiHi-0002Fb-VN for emacs-orgmode@gnu.org; Sat, 23 Jun 2018 09:08:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWiHf-0007pJ-Qy for emacs-orgmode@gnu.org; Sat, 23 Jun 2018 09:08:58 -0400 Received: from mailout03.t-online.de ([194.25.134.81]:37400) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fWiHf-0007oS-IR for emacs-orgmode@gnu.org; Sat, 23 Jun 2018 09:08:55 -0400 Received: from fwd20.aul.t-online.de (fwd20.aul.t-online.de [172.20.26.140]) by mailout03.t-online.de (Postfix) with SMTP id A3B6742AC49F for ; Sat, 23 Jun 2018 15:08:52 +0200 (CEST) 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" To: "gnu.org, emacs-orgmode" Hi list, have spent hours with trying to de-mystify this issue, but no chance to get= it. Any hints or doc references are welcome. Given a src block with a simple if clause depending on parameter p1: #+NAME: decider #+BEGIN_SRC emacs-lisp :var p1=3D"tbd" :results output (cond ((equal p1 "valA")(print "VALUE A")) =09((equal p1 "valB")(print "B VALUE")) =09(t (print (concat "ERROR: p1=3D>|" p1 "|< not handled" ))) ) #+END_SRC Why does the following noweb call result in the t condition (and not in val= B as expected) although the p1 value seems to be received by the decider block: #+BEGIN_SRC shell :var x=3D"valB" :noweb yes :results output raw echo -n <> #+END_SRC =3D=3D ERROR: p1=3D>|valB|< not handled while hard coded param value will work (valA chosen to differentiate from x= ): #+BEGIN_SRC shell :var x=3D"valB" :noweb yes :results output raw echo -n <> #+END_SRC #+RESULTS: VALUE A Hard coded "valB" will work as well. Different Linux Emacsen with org-mode 9+ show same results. Thank you very much in advance, Jherek=EF=BB=BF