From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: org-exp-blocks: what about previewing blocks ? Date: Thu, 27 Aug 2009 12:51:28 -0600 Message-ID: References: <51b0095d0906161740n23379dbbtdf919aa3e8a4ea4a@mail.gmail.com> <51b0095d0906180232j3489705dndcc7d458d5a078af@mail.gmail.com> <6484A133-BA92-4096-A100-42F6F9BBAB60@uva.nl> 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 1Mgk4U-0003gB-3o for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 14:51:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mgk4P-0003cy-Oq for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 14:51:41 -0400 Received: from [199.232.76.173] (port=37635 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mgk4P-0003cn-AH for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 14:51:37 -0400 Received: from mx20.gnu.org ([199.232.41.8]:56697) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mgk4O-0006Xu-Gh for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 14:51:37 -0400 Received: from mail-pz0-f172.google.com ([209.85.222.172]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mgk4M-0007bd-Sh for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 14:51:35 -0400 Received: by pzk2 with SMTP id 2so1350234pzk.28 for ; Thu, 27 Aug 2009 11:51:33 -0700 (PDT) In-Reply-To: <6484A133-BA92-4096-A100-42F6F9BBAB60@uva.nl> (Carsten Dominik's message of "Thu, 27 Aug 2009 18:38:22 +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: Carsten Dominik Cc: emacs-orgmode@gnu.org I don't have any plans to add previewing to org-exp-blocks, however there is an alternative. Org-babel provides for the evaluation and viewing of the results of blocks in Org-mode documents. As such, it is possible to use Org-babel to preview the output of blocks. For example, with Org-babel installed [1] calling C-c C-c on the following block will evaluate the block placing a link to the resulting file into the Org-mode document. Subsequently calling C-c C-o with the point on the block will find the link and open it previewing the image. --8<---------------cut here---------------start------------->8--- #+begin_src ditaa :file images/blue.png :cmdline -r +---------+ | cBLU | | | | +----+ | |cPNK| | | | +----+----+ #+end_src --8<---------------cut here---------------end--------------->8--- Hopefully in the near future Org-babel should be stable enough to justify an initial release, which should include an instructional page on worg. Best -- Eric Footnotes: [1] http://eschulte.github.com/org-babel/#getting-started