From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Commas in org source blocks Date: Tue, 25 Jan 2011 12:36:05 -0700 Message-ID: <8739og6aje.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=45735 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhogZ-0000KS-2Q for emacs-orgmode@gnu.org; Tue, 25 Jan 2011 14:36:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhogX-00015Y-Sx for emacs-orgmode@gnu.org; Tue, 25 Jan 2011 14:36:14 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:35439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhogX-000157-QP for emacs-orgmode@gnu.org; Tue, 25 Jan 2011 14:36:13 -0500 Received: by ywj3 with SMTP id 3so2136107ywj.0 for ; Tue, 25 Jan 2011 11:36:13 -0800 (PST) In-Reply-To: (Jeff Horn's message of "Tue, 25 Jan 2011 13:52:06 -0500") 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: Jeff Horn Cc: Org-mode ml Jeff Horn writes: > The manual doesn't make explicit mention of org as a Babel source > language. Well, it isn't listed in the supported languages, and an > "org mode org source block" site search via Google didn't turn up the > info I'm looking for. > There is support for Org code blocks, evaluation will generally result in returning a modified (possibly exported) version of the code block body. > > Basically, I tried using example blocks for a table I wrote, but noted > that the key commands for org tables didn't work in the indirect > buffer. Of course, I switched the example block to a source block, and > specified "org" as the language. > > After editing in the indirect buffer, there are commas prepended to > each line in the orignal buffer. These are not in the indirect buffer. > Is this the intended behavior? See screenshot for reference. > > http://cl.ly/4C7P > Yes, this is the intended behavior. The commas protect your enclosing source file from markup embedded in the org code block, otherwise a top-level headline in the body of a code block could break outline folding for the containing org file. Best -- Eric > > TIA