It is due to the (IMHO) extraneous (c-indent-defun) call at the end of
jde-gen-cflow-if template. Customize it and remove the call.
(Reasoning: why should every if statement indent the whole functions?
Maybe the call should be substituted with indent-region, assuming the
whole if statement is wrapped by a region.)
(defcustom jde-gen-cflow-if
'(
"(if (jde-parse-comment-or-quoted-p)"
" '(l \"if\")"
" '(l '> \"if\" jde-gen-conditional-padding-1 "
" \"(\" jde-gen-conditional-padding-2 (p \"if-clause: \" clause)"
" jde-gen-conditional-padding-2 \")\""
" (if jde-gen-k&r "
" jde-gen-conditional-padding-3 "
" '>'n)"
" \"{\"'>'n'>'r'n"
" \"}\""
" (if jde-gen-comments "
" '(l \" // end of if (\" (s clause) \")\"))"
" '>'n'> (c-indent-defun))"
" )"
)
> -----Original Message-----
> From: Jayakrishnan Nair [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 16, 2003 5:50 PM
> To: [EMAIL PROTECTED]
> Subject: Auto Indending
>
>
> Hi,
>
> I am using JDE 2.3.2 on Win2K. Everything works fine. If I
> type an if() then it just does it without any problem. But
> later, due to some key combination I am pressing, when I type
> if(), it says "Indenting.." And waits for a while and then
> puts the open and close curly brace and all. It takes some
> time and is irritating. How does this mode get turned on ?
>
> Cheers,
>
> JK
>
>