- Subject: Re: Reindent an entire C code in one shot
- From: Guenter Milde <milde@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 21 Nov 2002 09:45:15 +0100 (CET)
On Tue, 19 Nov 2002 11:12:52 -0500 wrote "John E. Davis" <davis@xxxxxxxxxxxxx>:
> > while (what_line <= End_Line)
> > {indent_line; down_1;}
>
> You probably want to use go_down_1 instead of down_1, since down_1
> returns a value that you are not not using.
Thank you John, one of my typical errors. (is there a debugging tool that
could warn me about unused return values?)
Once we are at indenting:
I know about the solution to reset the TAB key with the global-mode hook.
Still I wonder, whether it would be more clean to
* have only the emulation modes (emacs.sl, ide.sl, jed.sl, ...) binding
the TAB key,
* remove the bindings from the language-modes:
$JED_ROOT/lib/cmode.sl:857:definekey ("indent_line", "\t", $1);
$JED_ROOT/lib/idl.sl:239: definekey ("indent_line", "\t", $1);
$JED_ROOT/lib/perl.sl:185:definekey("indent_line", "\t", $1);
$JED_ROOT/lib/php.sl:988:definekey( "indent_line", "\t", $1 );
$JED_ROOT/lib/pymode.sl:64:definekey ("indent_line", "\t", $1);
$JED_ROOT/lib/tclmode.sl:337: definekey("indent_line", "\t", $1);
* and optionally set the indent_line_hook to insert("\t") or
text_indent_relative() in modes that have no specific indendation rules.
Günter
--
Milde at ife.et.tu-dresden.de
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2002 date index]
[2002 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]