From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neeum Zawan Subject: Re: Literate Programming - Continue a Source Block? Date: Tue, 14 Jun 2011 22:17:09 -0700 Message-ID: <871uyv7jxm.fsf@fester.com> References: <87pqmokh6d.fsf@fester.com> <80k4cw22uf.fsf@somewhere.org> <87fwnkjqoh.fsf@fester.com> <87mxhsnmcf.fsf@gmail.com> <877h8wj9za.fsf@fester.com> <877h8tv6yh.fsf@gmail.com> <87fwnhgps2.fsf@fester.com> <871uz0m8q9.fsf@gmail.com> <87oc238vby.fsf@fester.com> <87zkllie03.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWiR6-0004tY-Sk for emacs-orgmode@gnu.org; Wed, 15 Jun 2011 01:14:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWiR5-00044Y-TQ for emacs-orgmode@gnu.org; Wed, 15 Jun 2011 01:14:40 -0400 Received: from lo.gmane.org ([80.91.229.12]:54706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWiR5-00044M-Nw for emacs-orgmode@gnu.org; Wed, 15 Jun 2011 01:14:39 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QWiR2-0005FA-5q for emacs-orgmode@gnu.org; Wed, 15 Jun 2011 07:14:36 +0200 Received: from c-71-237-233-41.hsd1.or.comcast.net ([71.237.233.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jun 2011 07:14:36 +0200 Received: from mailinglists by c-71-237-233-41.hsd1.or.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jun 2011 07:14:36 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Eric Schulte writes: > Could you try the attached example file? I first evaluated the > following elisp code to set the combination variable's value to append. Your example works if there are no noweb references. See the modified one where I have noweb references. Note that when expanding the reference, it inserts only the first block it finds. --=-=-= Content-Disposition: inline; filename=combined-tangle-example.org Content-Description: combined #+begin_src emacs-lisp :tangle yes :noweb yes <> Random text <> #+end_src * continued code blocks :PROPERTIES: :tangle: yes :comments: yes :END: #+srcname: foo #+begin_src emacs-lisp (message "foo:%S" 1) #+end_src #+begin_src emacs-lisp (message "un-named") #+end_src #+srcname: bar #+begin_src emacs-lisp (message "bar:%S" 1) #+end_src #+srcname: foo #+begin_src emacs-lisp (message "foo:%S" 2) #+end_src #+srcname: bar #+begin_src emacs-lisp (message "bar:%S" 2) #+end_src #+begin_src emacs-lisp :tangle no :results silent (with-temp-buffer (insert-file-contents "scraps.el") (eval-buffer)) #+end_src --=-=-=--