emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Maurizio Vitale <mav@cuma.i-did-not-set--mail-host-address--so-tickle-me>
To: emacs-orgmode@gnu.org
Subject: Re: [org-babel] Idea: Rendering output of code blocks inline (like org links)
Date: Thu, 15 Oct 2009 23:42:28 -0400	[thread overview]
Message-ID: <87zl7sknrv.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: m2r5t4l1nk.fsf@gmail.com

>>>>> "Eric" == Eric Schulte <schulte.eric@gmail.com> writes:

    Eric> Marcelo de Moraes Serpa <celoserpa@gmail.com> 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

  reply	other threads:[~2009-10-16  3:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-15 15:08 [org-babel] Idea: Rendering output of code blocks inline (like org links) Marcelo de Moraes Serpa
2009-10-15 22:42 ` Eric Schulte
2009-10-16  3:42   ` Maurizio Vitale [this message]
2009-10-16 14:34     ` [babel] Re: " Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zl7sknrv.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me \
    --to=mav@cuma.i-did-not-set--mail-host-address--so-tickle-me \
    --cc=emacs-orgmode@gnu.org \
    --cc=maurizio.vitale@polymath-solutions.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).