Version 2.0 of semantic-tag-folding.el is now at

http://www.emacswiki.org/elisp/semantic-tag-folding.el

I took of simpler route of making incremental changes to
semantic-tag-folding.el instead of trying to add the new features to
semantic-fold.el in cedet CVS.

New features:

1) There is now a semantic-tag-folding-mode function which toggles the
mode, turning on semantic-decoration-mode if needed. There is also a
global-semantic-tag-folding-mode.

2) The fold state of inidvidual tags is now stored in semantic tag
attributes and so is automatically persisited across emacs runs. I
think semanticdb needs to be turned on for this.

3) semantic-tag-folding-fold-children  and semantic-tag-folding-hide-children 

Eric, This file now has some minor hackery to make the
semantic-decoration-mode appear independent of
semantic-tag-folding-mode. It does this by making
semantic-decoration-styles a buffer local variable and on occasion
setting it value to only turn on folding deocrations. Is it ok to do
this?

For the following sequence of commands the behaviour is described in
parenthesis.

M-x semantic-tag-folding-mode       (turns on fringe markers)
M-x semantic-decoration-mode       (turns on all decorations)
M-x semantic-decoration-mode       (turns off all decorations except
the fringe markers)
M-x semantic-tag-folding-mode       (turns off all decorations)

M-x semantic-decoration-mode       (turns on all decorations, except
for fringe markers)
M-x semantic-tag-folding-mode       (turns on fringe markers too)
M-x semantic-decoration-mode       (turns off all decorations except
the fringe markers)
M-x semantic-tag-folding-mode       (turns off the fringe markers too)

Suraj

Reply via email to