<div>Ah, great!</div><div><br></div><div>I gave it one very brief try with this mode:</div><div><br></div><div>   <a href="http://www.emacswiki.org/emacs/FoldingMode">http://www.emacswiki.org/emacs/FoldingMode</a><br></div>

<div><br></div><div>   (folding-add-to-marks-list &#39;shell-mode &quot;#{{{&quot; &quot;#}}}&quot; nil t)<br></div><div><br></div><div>But I just got &quot;not on a fold&quot;.  Maybe it doesn&#39;t compose with shell mode?  It might be easier just to add similar functionality to a wrapper function around Chris&#39;s folder/expander.</div>

<div><br></div><div>  -Ryan</div><div><br></div><div><br></div><div><br></div><div class="gmail_quote">On Sat, Mar 17, 2012 at 9:10 AM, Brandon Allbery <span dir="ltr">&lt;<a href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im">On Sat, Mar 17, 2012 at 08:55, Ryan Newton <span dir="ltr">&lt;<a href="mailto:rrnewton@gmail.com" target="_blank">rrnewton@gmail.com</a>&gt;</span> wrote:<br>

</div><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><ul><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></blockquote><div><br></div>


</div><div>I believe both emacs and vim have folding submodes which operate based on comments containing {{{ / }}} to bracket foldable regions.</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div>

<span class="HOEnZb"><font color="#888888">-- <br>brandon s allbery                                      <a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a><br>
wandering unix systems administrator (available)     <a href="tel:%28412%29%20475-9364" value="+14124759364" target="_blank">(412) 475-9364</a> vm/sms<br><br>
</font></span></div>
</blockquote></div><br>