Folding: Design Criteria, draft

Randy Kramer rhkramer at gmail.com
Fri Apr 4 14:44:57 CEST 2008


Aaron,

Can you provide an example of some Lisp/Scheme code with a fold within a line?  
I'd like to see what you'd expect to see (at least generally) in both the 
folded and unfolded condition.

Thanks,
Randy Kramer

On Wednesday 05 March 2008 09:31 pm, Aaron Hsu wrote:
> Randy Kramer <rhkramer at gmail.com> writes:
> > On Wednesday 05 March 2008 08:59 pm, Aaron Hsu wrote:
> >> For sure, I would find per-line folding in NEdit almost useless for me,
> >> because I edit deeply nested sets of parentheses (Lisp/Scheme code),
> >> which means that I need to be able to fold against nested parentheses
> >> regardless of where they are in a line. If a whole line is blocked out
> >> there isn't enough granularity for me to do real work.
> >
> > Interesting, I never thought of the problem with Lisp/Scheme.  
> 
> This is actually some of the most annoying parts about NEdit, is that
> it, as well as many other editors, is built on ideas which assume code
> is in the form of normal line based block structures, which completely
> ignores the Lisp family of languages.

> Now, the only two editors that really do this well are Emacs and Edwin,
> and I think it no coincidence that both of them are written in varients
> of Lisp, the first being E-Lisp and the second Scheme. Both also happen
> to have an editing mode called paredit, which allows pseudo-structured
> editing of source code based on the parentheses. 


More information about the Develop mailing list