From kwrite-devel Thu Jul 19 05:36:28 2007 From: Christoph Cullmann Date: Thu, 19 Jul 2007 05:36:28 +0000 To: kwrite-devel Subject: Re: kate indentation system (again) Message-Id: <200707190736.29010.cullmann () absint ! com> X-MARC-Message: https://marc.info/?l=kwrite-devel&m=118482343104350 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