From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maurizio Vitale Subject: Re: [org-babel] Idea: Rendering output of code blocks inline (like org links) Date: Thu, 15 Oct 2009 23:42:28 -0400 Message-ID: <87zl7sknrv.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> References: <1e5bcefd0910150808j632a07bcgeb98b9480cb70a28@mail.gmail.com> Reply-To: maurizio.vitale@polymath-solutions.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 1Mydds-0006td-2A for emacs-orgmode@gnu.org; Thu, 15 Oct 2009 23:38:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Myddn-0006sg-Es for emacs-orgmode@gnu.org; Thu, 15 Oct 2009 23:38:11 -0400 Received: from [199.232.76.173] (port=60954 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Myddn-0006sb-6p for emacs-orgmode@gnu.org; Thu, 15 Oct 2009 23:38:07 -0400 Received: from lo.gmane.org ([80.91.229.12]:37561) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Myddm-0007eE-Pm for emacs-orgmode@gnu.org; Thu, 15 Oct 2009 23:38:07 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1Myddg-00049g-VL for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 05:38:00 +0200 Received: from pool-72-95-245-39.pitbpa.east.verizon.net ([72.95.245.39]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Oct 2009 05:38:00 +0200 Received: from maurizio.vitale by pool-72-95-245-39.pitbpa.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Oct 2009 05:38:00 +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: emacs-orgmode@gnu.org >>>>> "Eric" == Eric Schulte writes: Eric> Marcelo de Moraes Serpa writes: >> Hello list! >> >> I haven't still managed to get org-babel to work, but I do have a >> doubt that might turn into a feature request :) >> >> Would it be possible to have chunks of code around the buffer get >> evaluated when you close them with some kind of token, and them >> only show the output, *just like links behave*. >> >> When you create a link, you have the structure: >> >> [[/location][name]] >> >> As you know, when you close this string, the rendering changes, >> and only the name part is shown, styled as a link. >> Hi Marcelo, Eric> 3) the results of a source code block are in no way Eric> constrained to be located after the body of the block. In Eric> cases where they are not located near each other the body Eric> would be invisible (which is not desirable) and when viewing Eric> the results there would be no way to tell if there is or isn't Eric> a source-block hidden beneath it For this to be useful for what the OP wanted to achieve it should be possible to ask for re-evaluation when on the result block. Also, it would be nice to be able to switch easily between source and result blocks (maybe this is possible, haven't checked). Maybe with this additional functionality one can get most of the hiding-the-source functionality and put all the source blocks in the final page of the document. The only difference I see is that when switching to the source block you loose the visual context around it. Regards, Maurizio