From mboxrd@z Thu Jan 1 00:00:00 1970 From: LanX Subject: Embedding org-syntax in program source Date: Tue, 13 Apr 2010 17:40:25 +0200 Message-ID: References: <871vejjsps.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1050511350==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1iE5-0005c0-5D for emacs-orgmode@gnu.org; Tue, 13 Apr 2010 11:40:33 -0400 Received: from [140.186.70.92] (port=46993 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1iE0-0005ag-TD for emacs-orgmode@gnu.org; Tue, 13 Apr 2010 11:40:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1iDz-0000xo-5f for emacs-orgmode@gnu.org; Tue, 13 Apr 2010 11:40:28 -0400 Received: from mail-bw0-f223.google.com ([209.85.218.223]:33039) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1iDy-0000xi-RO for emacs-orgmode@gnu.org; Tue, 13 Apr 2010 11:40:27 -0400 Received: by bwz23 with SMTP id 23so3786676bwz.26 for ; Tue, 13 Apr 2010 08:40:26 -0700 (PDT) In-Reply-To: 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 --===============1050511350== Content-Type: multipart/alternative; boundary=001485f1d90e92d13304842014aa --001485f1d90e92d13304842014aa Content-Type: text/plain; charset=ISO-8859-1 Oops, forgot to reply to the list... 8-| .. ---------- Forwarded message ---------- Thanks Eric, see this thread http://thread.gmane.org/gmane.emacs.orgmode/7957, as I > recall basically it's possible to get most org-like behavior using > orgstruct-mode, but many are continually frustrated by the remaining > missing 20% of behavior. > Hmm, for what I read it's NOT easily possible, Tassilo switched back to outline-minor-mode. > > > I know of org-babel, but the code produced is no legal Lisp/Perl code > > anymore... > > could you please elaborate, > ... > > I'm currently using Org-babel to write code in a variety of programming > languages, and I've had no problems running the tangled code. > Thats the point you have to tangle the code and furthermore you have to run emacs to tangle it. The file as such is not a legal Perl code anymore because of lines starting with a "*". (never actually worked with babel, but thats what I read from the docs) And relying on an extra step for code generation is dangerous... This is for sure acceptable with elisp or multilanguage projects. Anyway I think, I will do some experiments with using a Code Filter in Perl which eliminates the org-code. (thats a filter run at execution-time changing the source before it's fed into the compiler) Cheers Rolf PS: I forgot to mention that when switching to other modes the highlighting will also get confused and fly-make will report plenty of syntax problems. --001485f1d90e92d13304842014aa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Oops, forgot to reply to the list... 8-| ..

---------- Forwarded message ----------

Thanks Eric,


<= div class=3D"gmail_quote">
see this thread http://thread.gmane.org/gmane.emacs.orgmode/7957, a= s I
recall basically it's possible to get most org-like behavior using
orgstruct-mode, but many are continually frustrated by the remaining
missing 20% of behavior.
=A0
Hmm, for = what I read it's NOT easily possible, Tassilo switched back to outline-= minor-mode.

=A0

> I know of org-babel, but the code produced is no legal Lisp/Perl code<= br> > anymore...

could you please elaborate,
...

I'm currently using Org-babel to write code in a variety of programming=
languages, and I've had no problems running the tangled code.

Thats the point you have to tangle the code an= d furthermore you have to run emacs to tangle it.

The file as such i= s not a legal Perl code anymore because of lines starting with a "*&qu= ot;.
(never actually worked with babel, but thats what I read from the docs)
=
And relying on an extra step for code generation is dangerous...
This is for sure acceptable with elisp or multilanguage projects.

Anyway I think, I will do some experiments with using a Code Filter in Perl= which eliminates the org-code. (thats a filter run at execution-time chang= ing the source before it's fed into the compiler)

Cheers
=A0 Rolf

PS: I forgot to mention that when switching to other modes the highlighting will also get confused and fly-make will report plenty of syntax problems. --001485f1d90e92d13304842014aa-- --===============1050511350== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1050511350==--