[Geany-devel] Per-filetype indentation settings
Colomban Wendling
lists.ban at xxxxx
Thu Aug 25 20:26:09 UTC 2011
Le 23/08/2011 07:11, Lex Trotman a écrit :
> On 22 August 2011 22:57, Colomban Wendling <lists.ban at herbesfolles.org> wrote:
>> [...]
>> However it'd be easy to add "auto-detect" to indentation type and width
>> selection menus -- though indentation width detection doesn't work for
>> tabs-based indentation for now.
>>
>
> The autodetect entry is to provide a way to return it to autodected
> values after I mucked it up by fiddling and can't remember where I
> started :-)
>
>>
>> So, to summarize a little:
>>
>> 1) Add per-filetype indentation width and type;
>>
>> 2) When setting the filetype for the first time (file open and unpon
>> initial manual filetype selection), use, in order:
>> a) auto-detect (if preferred)
>
> or not new file (can't detect a non-existent file :-)
>
>> b) filetype setting
>> c) user global settings
>> d) system global settings
>>
>> 3) when changing the filetype for the second (or more) time, don't touch
>> indentation settings.
>>
>> Sounds good?
>
> Yep.
I've finally committed this to SVN, see r5902 and r5904. Still possible
to comment if you have any further suggestions :)
Cheers,
Colomban
More information about the Devel
mailing list