From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: can't get org-mode noweb tangle to work Date: Fri, 24 Nov 2017 14:26:53 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIOJZ-0006xu-5B for emacs-orgmode@gnu.org; Fri, 24 Nov 2017 19:27:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIOJW-0002BD-1U for emacs-orgmode@gnu.org; Fri, 24 Nov 2017 19:27:25 -0500 Received: from gproxy2-pub.mail.unifiedlayer.com ([69.89.18.3]:36925) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eIOJV-00025a-Ry for emacs-orgmode@gnu.org; Fri, 24 Nov 2017 19:27:21 -0500 Received: from CMOut01 (unknown [10.0.90.82]) by gproxy2.mail.unifiedlayer.com (Postfix) with ESMTP id 126DB1E0938 for ; Fri, 24 Nov 2017 17:27:06 -0700 (MST) In-reply-to: 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: "Charles R (Charlie) Martin" Cc: emacs-orgmode@gnu.org Aloha Charlie, Charles R (Charlie) Martin writes: > I'm trying to get literate programming with `:noweb` syntax working in > org-mode. I think I'm down to about the minimum case: > > #+TITLE: Console Tic Tac Toe > #+SUBTITLE: A Literate Program in EMACS Org-Mode > #+AUTHOR: Charlie Martin > #+STARTUP: showall > > #+BEGIN_SRC python :tangle yes :noweb > import sys > import os > > def main(args): > <> > > if __name__ == "__main__": > main(sys.argv) > #+END_SRC > > #+NAME: initialize-the-game-board > #+BEGIN_SRC python :tangle yes :noweb > board = [[-1 for x in range(3)] for y in range(3)] > #+END_SRC > > but when I tangle it I get: > > import sys > import os > > def main(args): > <> > > if __name__ == "__main__": > main(sys.argv) > > board = [[-1 for x in range(3)] for y in range(3)] > > I've tried permuting the argument, flags, and so on to no avail. > > EMACS version is 25.3.1 MacOS, org-mode 9.1.3 I think it should be :noweb yes hth, Tom -- Thomas S. Dye http://www.tsdye.com