From mboxrd@z Thu Jan 1 00:00:00 1970 From: w t <1218121@gmail.com> Subject: Simple Literate Programming Example Date: Thu, 27 May 2010 16:43:38 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=47084 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHmjm-0006mR-BU for emacs-orgmode@gnu.org; Thu, 27 May 2010 19:43:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from <1218121@gmail.com>) id 1OHmjl-0003VE-CV for emacs-orgmode@gnu.org; Thu, 27 May 2010 19:43:42 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:43119) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from <1218121@gmail.com>) id 1OHmjl-0003Ut-AK for emacs-orgmode@gnu.org; Thu, 27 May 2010 19:43:41 -0400 Received: by gwb19 with SMTP id 19so600062gwb.0 for ; Thu, 27 May 2010 16:43:39 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I put the "Simple Literate Programming Example" from the Org-Babel Introduction in a file hello.org, namely, ==================hello.org=========================== #+srcname: hello-world-prefix #+begin_src sh :exports none echo "/-----------------------------------------------------------\\" #+end_src #+srcname: hello-world-postfix #+begin_src sh :exports none echo "\-----------------------------------------------------------/" #+end_src #+srcname: hello-world #+begin_src sh :tangle hello :exports none # <> echo "| hello world |" # <> #+end_src ==================end=hello.org=========================== Then I do "M-x org-babel-tangle", and this generates the file hello: =================begin=hello============================ #!/usr/bin/env sh # [[file:~/ORG/hello.org][hello-world]] # <> echo "| hello world |" # <> # hello-world ends here ==================end=hello============================= which does not seem to jive with the Introduction, which, among other things, says the <<*>>'s should expand. I've seen other examples where the #'s are removed from before the <<*>>'s, but this does not seem to matter. Any ideas on what I'm missing? My .emacs file is ==============begin=.emacs============================= (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cb" 'org-iswitchb) (setq load-path (cons "/tmp/org-mode/lisp" load-path)) (setq load-path (cons "/tmp/org-mode/contrib/lisp" load-path)) (require 'org-babel-init) (require 'org-babel-sh) (org-babel-load-library-of-babel) =============end=.emacs================================= and the "/tmp/org-mode/" is a Git directory from today.