[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: kate indentation system (again)
From:       Christoph Cullmann <cullmann () absint ! com>
Date:       2007-07-19 5:36:28
Message-ID: 200707190736.29010.cullmann () absint ! com
[Download RAW message or body]

On Thursday 19 July 2007 00:59, Dominik Haumann wrote:
> But still, can we maybe still provide both?
>
> What about extending the return type of the indent() function:
> - if the return value is a single number -> interpret as tab+spaces
> - if the return value is an array with 2 numbers -> interpret the first
>   number as tab+spaces and the second one as (forced) spaces only
We can do so. But as vim doesn't, too, I am not sure, if that really is a 
valid usecase, it makes the code much more complex, as the unindent/indent 
routines would need script logic than, too, as there could be interesting 
things happening on indent/unindent, or?

cu
Christoph

-- 
-------------------------------------- Christoph Cullmann ---------
AbsInt Angewandte Informatik GmbH      Email: cullmann@AbsInt.com
Science Park 1                         Tel:   +49-681-38360-22
66123 Saarbrücken                      Fax:   +49-681-38360-20
GERMANY                                WWW:   http://www.AbsInt.com
--------------------------------------------------------------------
Geschäftsführung: Dr.-Ing. Christian Ferdinand
Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic