Folks,
Many of the
jde-gen-cflow-BLAH templates call the the
c-indent-defun
at the
end.
I find it
obstructive for following reasons...
1. I use
jde-mode for editing JSP code. It works very
well
after adding
the following keyword regexps.
(font-lock-add-keywords 'jde-mode
'(
("%>\\([^.]*?\\)<%" 1 font-lock-comment-face t)
("<[^%].*?[^%]>" 0 jde-java-font-lock-bold-face t)
("<[_a-zA-Z0-9]+:.*/?>" 0 font-lock-function-name-face t)
("</[_a-zA-Z0-9]+:.*>" 0 font-lock-function-name-face t)
("<%@.*%>" 0 jde-java-font-lock-api-face t)
("\\(<%=\\).*\\(%>\\)"
(1 jde-java-font-lock-bold-face t)
(2 jde-java-font-lock-bold-face t)
)
("\\(<%@\\s +page\\s +\\)\\(import\\)\\(\\s *=\\s *\"\\)\\([,a-zA-Z._0-9*]+\\)\\(\"\\s *?%>\\)"
(1 jde-java-font-lock-api-face prepend)
(2 font-lock-keyword-face prepend)
(3 jde-java-font-lock-api-face prepend)
(4 jde-java-font-lock-package-face prepend)
(5 jde-java-font-lock-api-face prepend)
)
)
)
However after
using jde-gen-cflow-BLAH my non-java code gets
indented.
2. In a
multi-developer scenario, where any fixed indentation style is
not
followed and
especially in bug fix mode... I want to only change
the
line that I
fix. I do not want to indent other people's code in the method
body.
What will it
take to make that optional (i.e. dependent on customization)
?
In fact I see
three different choices here.....
1. Do not call
c-indent-defun at all
2. Only call
the indent on the lines that are result of the expansion of
the
template.
3. The current
behavior.
Anyone
thoughts ?
-sandip