[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple editor required

From: Paul Edwards
Subject: Re: simple editor required
Date: Tue, 24 Jun 2003 11:43:45 GMT

"Kai Großjohann" <address@hidden> wrote in message news:address@hidden
> "Paul Edwards" <address@hidden> writes:
> > It is.  The "maybe" means it doesn't always indent.  And it
> > shouldn't, when it is quite obvious the user already has text
> > on that line, and doesn't need it indented.  If they had wanted
> > it indented, they would have pressed tab, not enter.
> Huh?  I find it really convenient that I can just hit TAB (my binding
> for indent-relative) at the beginning of a line to increase its
> indentation.

But that's what I just said.  You'd press TAB, not enter.
TAB is logical, enter is not.  No-one expects enter, at
the beginning of a line, to go to a newline and indent
the existing text.  enter doesn't do that sort of thing.  It
does start a newline, beginning under the previous one
though.  That is logical and reasonable.

> > Indentation is meant to apply to a NEW line, not an existing
> > line.  It's meant to put blanks there ready for you to optionally
> > start typing real characters, and then delete them later if they
> > are not already there.
> I use it for existing lines, too.

You don't hit enter at the beginning of a line of text, and expect
it to insert a newline and indent the current text.

> > It is not meant to trash existing lines!  Nor is it meant to get
> > so confused on the first line, that it just indents 8 spaces, even
> > when my tab setting is 4, and there's not even a prior line to
> > inspire it to do something that silly.
> That might be a misconfiguration on your part.  (Not that I blame you;
> the subject is complex.)  indent-relative looks at tab-stop-list and
> configuring tab-width is not going to have the effect you might
> expect.  (tab-width refers to how tab characters in the text are
> displayed, but the TAB key does not always insert tab characters.)

So it sometimes (ie at beginning of file) looks at tab-stop-list,
and everywhere else it looks at the indentation of the previous
line.  Seems very strange to me.

Anyway, I've got a couple of things to try tomorrow, didn't get
a chance today.  :-)

BFN.  Paul.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]