From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: [babel] Re: Re: [org-babel] Idea: Rendering output of code blocks inline (like org links) Date: Fri, 16 Oct 2009 08:34:13 -0600 Message-ID: References: <1e5bcefd0910150808j632a07bcgeb98b9480cb70a28@mail.gmail.com> <87zl7sknrv.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> 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 1Mynsu-0007GW-Gv for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 10:34:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mynsq-0007Da-S1 for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 10:34:24 -0400 Received: from [199.232.76.173] (port=36854 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mynsq-0007DJ-G6 for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 10:34:20 -0400 Received: from mail-px0-f191.google.com ([209.85.216.191]:36101) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mynsq-0007b1-04 for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 10:34:20 -0400 Received: by pxi29 with SMTP id 29so1675913pxi.14 for ; Fri, 16 Oct 2009 07:34:18 -0700 (PDT) In-Reply-To: <87zl7sknrv.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> (Maurizio Vitale's message of "Thu, 15 Oct 2009 23:42:28 -0400") 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: maurizio.vitale@polymath-solutions.com Cc: emacs-orgmode@gnu.org Maurizio Vitale writes: >>>>>> "Eric" == Eric Schulte writes: > > 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. > the only tricky part of this would be capturing C-c C-c when on results, as this key binding already has a well defined meaning in most results types (for example in tables). However if we are willing to introduce a new keybinding the actual function would be relatively simple given the helper functions mentioned below. > > Also, it would be nice to be able to switch easily between source and > result blocks (maybe this is possible, haven't checked). > there are currently functions which return the location of a results block when called from a source block, and vice versa. (org-babel-where-is-src-block-result &optional INSERT) (org-babel-find-named-block name) The only issue in exposing these to the user is the possibility of polluting the already very dense space of Org-mode keybindings. > > 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. > Ah, I think I understand. That would be a much simpler path towards achieving much of the "hiding" functionality originally proposed. I will add this discussion in a PROPOSED state to the Org-babel task list. Thanks -- Eric > > The only difference I see is that when switching to the source block you > loose the visual context around it. > > Regards, > > Maurizio > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode