Le 23/08/2011 07:11, Lex Trotman a écrit :
On 22 August 2011 22:57, Colomban Wendling lists.ban@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:
Add per-filetype indentation width and type;
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
- 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