<div>Hi all,</div><div><br></div><div>I&#39;ve got a question that pertains to any of these identify-region, parse, make-expandable approaches.</div><div><br></div><div>The main use I&#39;d like to use the trick for (esp. Chris&#39;s Emacs version) is to deal with large intermediate compiler ASTs.</div>

<div><br></div><div>But if a compiler produces a long stream of output to stdout, with certain Show-produced ASTs embedded in it, what&#39;s the most expedient way to identify those regions that can be collapsed in the buffer and interactively expanded?</div>

<div><ul><li>The user could define heuristics for identifying those regions in a particular stream of output</li><li>If the source is available, the compiler could be tweaked to obey a protocol, putting delimiters around collapsable output (possibly non-printing control sequences??)</li>

</ul><div>Or is there another hack I&#39;m not thinking of?  What&#39;s easiest?</div></div><div><br></div><div>  -Ryan</div><div><br></div><br><br><div class="gmail_quote">On Wed, Mar 14, 2012 at 5:01 AM, Heinrich Apfelmus <span dir="ltr">&lt;<a href="mailto:apfelmus@quantentunnel.de">apfelmus@quantentunnel.de</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Christopher Done wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Maybe an Emacs script to expand the nodes nicely:<br>
<a href="http://www.youtube.com/watch?v=6ofEZQ7XoEA" target="_blank">http://www.youtube.com/watch?<u></u>v=6ofEZQ7XoEA</a> I don&#39;t find mere pretty<br>
printing that useful compared to the “expanding” paradigm I&#39;m used to in<br>
Chrome and Firebug.<br>
</blockquote>
<br></div>
Great demo video. My recent GSoC project suggestions aims to make that available to non-Emacsers, via the web browser.<br>
<br>
  <a href="http://hackage.haskell.org/trac/summer-of-code/ticket/1609" target="_blank">http://hackage.haskell.org/<u></u>trac/summer-of-code/ticket/<u></u>1609</a><br>
<br>
<br>
Best regards,<br>
Heinrich Apfelmus<br>
<br>
--<br>
<a href="http://apfelmus.nfshost.com" target="_blank">http://apfelmus.nfshost.com</a><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
______________________________<u></u>_________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br>