From: Wildemar W. <wil...@fr...> - 2007-12-24 02:09:54
|
Dang! Forgot the attachment, sure enough. Wildemar Wildenburger wrote: > Hello :) > > I've written a macro to beautify my explicit folds upon save (via the > ActionHooks plugin). However, since the fold-start lines are altered by > the macro, I find the buffer's collapsed/expanded state is (somewhat > unpredictably) different after the macro ran. It must have something to > do with the chagning of the fold-start line, because when not changing > those, nothing bad happens. See the attached file for reference. What it > should be doing: > > * Prepend the fold-opening and -closing strings with asterisks, > according to the depth of the fold (to ease quick visual > disrimination of fold-nesting) > * append the fold name to the closing line (in parenthesis), to make > it clear which fold actually ends there > * leave collapsed folds collapsed and expanded folds expanded > > The third point it doesn't quite get right. > > BTW: Has jEdit's behavior regarding folds changed recently? Now, when I > delete the line above a collapsed fold, thus entering the fold-start > line, the fold expands. I don't think that it always did that. Am I wrong? > > /W > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > |