From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] hide inline source code blocks by results Date: Wed, 11 Apr 2012 10:08:51 -0400 Message-ID: <87vcl62wek.fsf@gmx.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI06X-0003HX-RY for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 12:09:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SI06S-00068F-Qk for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 12:09:09 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:49368 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SI06S-00064h-Ii for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 12:09:04 -0400 In-Reply-To: (Torsten Wagner's message of "Wed, 11 Apr 2012 23:45:54 +0900") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Torsten Wagner Cc: Org Mode Mailing List Currently inline blocks like don't associate themselves with their results, they are only expected to be evaluated on export, so the functionality you suggest below would require first changing how results are associated with inline code blocks. Another option would be to hide everything but the body of the block, but this may be more confusing than it is worth. Best, Torsten Wagner writes: > Hi, > > I guess we had such a discussion some time ago already. > I just started again to use inline source code blocks > > e.g. > > text text text src_python[:session]{print((U[0]-U[1])*1000)} mV text text text > > if you have a lot of these in a text its rather hard to read. > I was thinking of something similar like links in org-mode > The inline source code gets hidden behind the result of the last > evaluation and can be accessed in the same way like links in org-mode. > It could even open up in a buffer of the target language like source > code blocks. > The above example would be reduced to > > text text text _355_ mV text text text > > C-c C-c would update the result > mouse click open the source code in a language specific buffer > etc. > > This would really make it more readable > > All the best > Torsten > -- Eric Schulte http://cs.unm.edu/~eschulte/