jed-users mailing list

[2002 Date Index] [2002 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Re: redo in jed CUA mode


----- Original Message -----
From: "Guenter Milde" <milde@xxxxxxxxxxxxxxxxxxxx>
To: "Andy Sy" <andy@xxxxxxxxxxx>; <jed-users-l@xxxxxxxxxxxxxx>
Sent: Thursday, December 12, 2002 4:28 PM
Subject: Re: Re: redo in jed CUA mode


> Maybe, your line/region is already correctly indented? See the help for
> indent_line:
>
>  DESCRIPTION
>    The `indent_line' line function indents the current line in a manner
>    which depends upon the current buffer.  The actual function that gets
>    called is set via a prior call the `set_buffer_hook' to set the indent
>    hook.  The default value is to indent the line to the indentation
>    level of the previous line.

Ah, okay. I was expecting TAB to behaves as it
would everywhere else, to just insert a tab character.

> The language-modes (python_mode, slang_mode, c_mode, ...)
> set the buffer hook
> (description of hooks is in Help->Browse-Docs->hooks.txt).
>
> When programming, I really appreciate this feature, as it indents e.g.
> inserted lines automatically to the right level. Also, it is a kind of
> syntax-check, as an unexpected indentation action is normally a sign for a
> missing ")" or ";"!
>
> If you want the TAB key to do some kind of "soft-tabbing" (i.e.
> skip to the
> next begin-of-word in the line above) in text-mode, bind the
> text_indent_relative() function to the indent_hook:

With a highlighted region, the behavior I was expecting
was that of Visual Studio - Tab indents everything in the
highlighted region, Shift-Tab the opposite.

How does one do this in CUA jed?



--------------------------
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]