From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: Embedding org-syntax in program source Date: Tue, 13 Apr 2010 17:31:40 -0400 Message-ID: <87k4sbrqdf.fsf@stats.ox.ac.uk> References: <871vejjsps.fsf@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 1O1nhz-0000DQ-Mt for emacs-orgmode@gnu.org; Tue, 13 Apr 2010 17:31:47 -0400 Received: from [140.186.70.92] (port=33613 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1nhy-0000D4-5C for emacs-orgmode@gnu.org; Tue, 13 Apr 2010 17:31:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1nhv-000154-VL for emacs-orgmode@gnu.org; Tue, 13 Apr 2010 17:31:46 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:41475) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1nhv-00014s-OA for emacs-orgmode@gnu.org; Tue, 13 Apr 2010 17:31:43 -0400 In-Reply-To: (LanX's message of "Tue, 13 Apr 2010 17:40:25 +0200") 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: LanX Cc: emacs-orgmode@gnu.org LanX writes: [...] > > 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. > > Hi Rolf, > Thats the point you have to tangle the code and furthermore you have to run > emacs to tangle it. Right. Given the present forum I presume you are using emacs, so that shouldn't be a problem per se? > 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) I think you may have formed an inaccurate idea of how people are working with source code in org-mode. It's not just about creating code files with a bunch of stars in them; it involves embedding source code in fully-functioning org-mode files (i.e. with headings, tags, properties, TODO items, tables, links, timestamps etc). So of course these files do not contain "legal Perl code". > > And relying on an extra step for code generation is dangerous... You would have to explain that assertion. I work on a number of projects where the code files are generated by tangling, and I'm still here. Also still here are people whose finished products require the extra step of running make, latex, gcc compilation etc. > > This is for sure acceptable with elisp or multilanguage projects. I didn't understand this. [...] > 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. I'm not sure what you mean here. When working with code in org-mode, one uses C-c ' to switch to a language major-mode buffer containing the body of the source code block. Is that working OK for you? Dan > _______________________________________________ > 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