From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Irrelevant src blocks can break noweb expansion Date: Mon, 11 Dec 2017 03:13:41 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOEXN-0001Vm-At for emacs-orgmode@gnu.org; Sun, 10 Dec 2017 22:13:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOEXJ-0006k5-7k for emacs-orgmode@gnu.org; Sun, 10 Dec 2017 22:13:49 -0500 Received: from iport-acv2-out.ucsd.edu ([132.239.0.174]:64979) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOEXI-0006dd-Ot for emacs-orgmode@gnu.org; Sun, 10 Dec 2017 22:13:45 -0500 Received: from HS-CDGLP6-V-MTA (localhost.localdomain [127.0.0.1]) by HS-CDGLP6-V-MTA (Postfix) with ESMTP id 993936F for ; Sun, 10 Dec 2017 19:13:42 -0800 (PST) Received: from iport-acv9-out.ucsd.edu (iport-acv9-out.ucsd.edu [132.239.0.167]) by HS-CDGLP6-V-MTA (Postfix) with ESMTP id 7EAC36F for ; Sun, 10 Dec 2017 19:13:42 -0800 (PST) Content-Language: en-US Content-ID: <24D65CA32E527441AF4CD3FEDB329D29@AD.UCSD.EDU> 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: emacs-org list I used to avoid this by `(setq org-babel-use-quick-and-dirty-noweb-expansio= n t)'. This illustrates the issue: #+begin_src org ,* abc ,#+begin_src R :comment (message "running on empty") ,#+end_src ,#+begin_src R :noweb yes 1 ,#+end_src #+end_src The irrelevant, unnamed, empty src block its consulted via org-babel-get-sr= c-block-info. This runs the (message ...) expression. Not much of a probl= em here, but I sometimes have a src block in my buffer that is a work-in-pr= ogress and has a header arg that calls a function I would not ordinarily ha= ve loaded. When noweb does its thing, it chokes on the lack of a function. Chuck=