Excerpts from Jean-Philippe Bernardy's message of Thu Dec 11 10:04:04 +0100 
2008:
> 
> This is somewhat annoying, as it prevents to move the cursor using the
> tab key, on an empty line,
> in the emacs mode. Why to you need this?

Two reasons, that's the semantics we want when indenting a selected region,
i.e. don't add useless spaces. The second reason is more tricky by skipping
empty lines I get right semantics for free when indenting a region where the
last char is '\n', otherwise it adds indentation to the line that is out of
the region.

I guess we need two different functions then...

> On Tue, Dec 9, 2008 at 3:37 PM, Nicolas Pouillard
> <[EMAIL PROTECTED]> wrote:
> >
> > Tue Dec  9 08:27:41 EST 2008  Nicolas Pouillard <[EMAIL PROTECTED]>
> >  * Yi.Buffer.Indent: do nothing on empty lines.
> >  Ignore-this: 77e7f5cbd0a4e80300eddc0876c559b
> >
> >    M ./Yi/Buffer/Indent.hs -1 +1
> >
> > >
> >
> 

-- 
Nicolas Pouillard aka Ertai

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to