From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: [babel] Re: Re: org-babel-tangle tangles too much ! Date: Tue, 01 Dec 2009 13:50:34 -0500 Message-ID: <87my22sf45.fsf_-_@stats.ox.ac.uk> References: <51b0095d0912010654y32b109b1hb3795e86cf6e0416@mail.gmail.com> <51b0095d0912010955i5d93b3e2lbf17369048556970@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFXoA-0005cH-Lk for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 13:50:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFXo6-0005a6-2r for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 13:50:42 -0500 Received: from [199.232.76.173] (port=60022 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFXo5-0005a3-UM for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 13:50:37 -0500 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:65017) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFXo5-0002RW-Fl for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 13:50:37 -0500 In-Reply-To: <51b0095d0912010955i5d93b3e2lbf17369048556970@mail.gmail.com> (Nicolas Girard's message of "Tue, 1 Dec 2009 18:55:20 +0100") 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: Nicolas Girard Cc: emacs-orgmode **thread participants: let's not forget to put [babel] in the subject line.** Nicolas Girard writes: > On Tue, 01 Dec 2009 05:43:38 -1000, Thomas S. Dye wrote : >> >> Your code snippet doesn't tangle at all here. Perhaps you have a >> setting somewhere that has an effect on tangling? >> > > I'm intending my file (username.org) to be processed by Eric's > emacs-starter-kit during init (via org-babel-load-file I guess). > > As none of the other starter-kit.org seemed to bother with ":tangle > yes" I didn't either. Hi Nicolas, I just tried to do this and it seemed to work. Could you tell me if this is similar to what you are doing, and if so whether it works for you? I have an org file /tmp/ng.org: ----------------------------------------------------- * heading #+srcname: a #+begin_src emacs-lisp :tangle no (setq startup-var1 'startup-var1-value) #+end_src #+srcname: b #+begin_src emacs-lisp <> (setq startup-var2 'startup-var2-value) #+end_src ----------------------------------------------------- and then I evaluated this (org-babel-load-file "/tmp/ng.org") That resulted in /tmp/ng.el: ----------------------------------------------------- ;; generated by org-babel-tangle ;; [[file:/tmp/ng.org::*heading][b]] (setq startup-var1 'startup-var1-value) (setq startup-var2 'startup-var2-value) ;; b ends here ----------------------------------------------------- And afterwards, the two startup-var* variables had their values set. Does this help? Dan