From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-exp-blocks: what about previewing blocks ? Date: Thu, 27 Aug 2009 18:38:22 +0200 Message-ID: <6484A133-BA92-4096-A100-42F6F9BBAB60@uva.nl> References: <51b0095d0906161740n23379dbbtdf919aa3e8a4ea4a@mail.gmail.com> <51b0095d0906180232j3489705dndcc7d458d5a078af@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mgj5b-00028l-Iu for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 13:48:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mgj5X-00026t-UB for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 13:48:47 -0400 Received: from [199.232.76.173] (port=59305 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mgj5X-00026o-R2 for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 13:48:43 -0400 Received: from pony.ic.uva.nl ([145.18.40.181]:39213) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mgj5W-0007Dc-Vt for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 13:48:43 -0400 In-Reply-To: <51b0095d0906180232j3489705dndcc7d458d5a078af@mail.gmail.com> 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: Nicolas Girard Cc: emacs-orgmode@gnu.org Hi Nicolas, while this would be great, I don't see any movement in this direction, so for now I am closing this thread in my TODO folder.... - Carsten On Jun 18, 2009, at 11:32 AM, Nicolas Girard wrote: > 2009/6/18 Carsten Dominik > > On Jun 17, 2009, at 2:40 AM, Nicolas Girard wrote: > > Hi all, > > currently the code in org-exp-blocks is intended for pre-processing > only. > It seems to me like org-mode would gain a very powerful feature, if > blocks could also be previewed in their own buffer, using the same > mechanism as the org-format-latex function. > What do you think ? > > I don't see how this could be done in a general way. I guess you > mean in particular > the graphics blocks like ditaa? > > Yes. For any block type bt, if it makes sense, it would be possible > to write such org-block--generate-image(body) that takes the > block as argument and returns the path of the image it produced. > > Then: > - for exporting: the existing org-export-blocks-format- > functions would simply call their respective org-block--generate- > image and work the same ; > - for previewing a block of type : if such org-block-- > generate-image exists, call it and display it the same way org- > format-latex does > > Wouldn't it be great ? > > Nicolas > _______________________________________________ > 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 ======================= PLEASE NOTE NEW ADDRESS ======================= prof.dr. Carsten Dominik dominik@uva.nl Astronomical Institute 'Anton Pannekoek' www.astro.uva.nl/~dominik Faculty of Science, University of Amsterdam phone +31-20-5257477/7491 SCIENCE PARK 904, ROOM C4-106 fax +31-20-5257484 1098 XH Amsterdam, The Netherlands mail: PO BOX 94249, 1090GE, Amsterdam