From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: [babel] Painless integration of source blocks with language Date: Sun, 09 Jan 2011 19:13:46 -0700 Message-ID: <87r5clmrol.fsf@gmail.com> References: <87lj2ukfia.fsf@gmail.com> <8762ty5s9y.fsf@gmail.com> <8739p2ot4q.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=39881 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pc7Gf-0003Vs-0j for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 21:13:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pc7Gb-0004R6-OO for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 21:13:55 -0500 Received: from mail-iw0-f169.google.com ([209.85.214.169]:42732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pc7Gb-0004Ql-JR for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 21:13:53 -0500 Received: by iwn40 with SMTP id 40so20989381iwn.0 for ; Sun, 09 Jan 2011 18:13:52 -0800 (PST) In-Reply-To: (Seth Burleigh's message of "Sun, 9 Jan 2011 18:59:25 -0600") 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: Seth Burleigh Cc: Org Mode Hi Seth, I looked briefly at your code and much of it re-implements functionality already provided by org-mode using a slight variation of Org-mode syntax. While I fully understand that it is often easier to write your own functions rather than look up and parse existing functions, I think that your code will stand a much better chance of re-use if it is works with existing org-mode syntax rather than against it. A couple of examples below [1]. It would probably be worthwhile to read the "Source Code" section of the Org-mode manual at [2]. I look forward to understanding the concepts behind your example, but the above issues make this difficult. Best -- Eric Seth Burleigh writes: > As an update, ive been working on something i call chunks. Basically, > they are blocks of code (i.e. emacs overlays) that are linked > together. So far, i have each ns of my clojure code in one source > block which is then tangled to one file. So, i would like to open the > tangled file and then make changes, and finally 'push' those changes > to the org file. > > Theres some bugs (pushing when mark is next to a parantheses), but i think > it is going in the correct way to also include noweb tangling. In the > attached code, you hit f8 in a source block to link the block to its file > and then f8 if you want to unlink it, and you hit ctrl-alt-p to push changes > from source file to org file. > > just execute lp.el in an ielm buffer. and try it out with the previous test > org file that was attached. Footnotes: [1] a couple of examples... #+results:silent #+noweb:yes should be #+Babel: :noweb yes :results silent also, #+srcname:add should be #+srcname: add once that syntax is fixed, then `org-babel-find-named-block' can be used instead of `find-chunk'. Also, your `tangle-chunk' function duplicates the functionality of `org-babel-tangle'. [2] http://orgmode.org/manual/Working-With-Source-Code.html