From: "Eric Schulte" <schulte.eric@gmail.com>
To: Seth Burleigh <wburle4@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Re: [babel] Painless integration of source blocks with language
Date: Sun, 09 Jan 2011 19:13:46 -0700 [thread overview]
Message-ID: <87r5clmrol.fsf@gmail.com> (raw)
In-Reply-To: <AANLkTi=L8u03UQ_RiVrAX=Qh=5Mv_cf2wUKmX6UhbTn=@mail.gmail.com> (Seth Burleigh's message of "Sun, 9 Jan 2011 18:59:25 -0600")
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 <wburle4@gmail.com> 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
next prev parent reply other threads:[~2011-01-10 2:13 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-08 22:29 [babel] Painless integration of source blocks with language Seth Burleigh
2011-01-09 1:54 ` Eric Schulte
2011-01-09 9:40 ` Štěpán Němec
2011-01-09 17:59 ` Eric Schulte
2011-01-10 0:59 ` Seth Burleigh
2011-01-10 2:13 ` Eric Schulte [this message]
2011-01-10 3:49 ` Seth Burleigh
2011-01-10 4:01 ` Seth Burleigh
2011-01-11 17:00 ` Eric Schulte
2011-01-10 18:46 ` Eric S Fraga
2011-01-11 17:12 ` Eric Schulte
[not found] ` <AANLkTi=dNTn6HBeR4wV7039FDDyPGtmWbmL0biFwT-ta@mail.gmail.com>
2011-01-11 23:09 ` Seth Burleigh
2011-01-13 9:11 ` Eric S Fraga
2011-01-13 15:23 ` Seth Burleigh
2011-01-13 21:23 ` Eric Schulte
2011-01-13 23:44 ` Seth Burleigh
2011-01-16 15:31 ` Eric Schulte
2011-01-17 9:29 ` Sébastien Vauban
2011-01-17 16:18 ` Eric Schulte
2011-01-17 19:32 ` Sébastien Vauban
2011-01-17 22:15 ` Seth Burleigh
2011-01-17 22:44 ` Sébastien Vauban
2011-01-18 18:11 ` Seth Burleigh
2011-01-18 18:14 ` Seth Burleigh
2011-01-18 18:38 ` Seth Burleigh
2011-01-19 7:28 ` Eric Schulte
2011-01-24 14:49 ` Seth Burleigh
2011-01-18 19:53 ` Bastien
2011-01-24 11:56 ` Dan Davison
2011-01-24 18:56 ` Eric S Fraga
2011-01-26 10:43 ` Sébastien Vauban
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r5clmrol.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=wburle4@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).