Comment 8 for bug 490772

Revision history for this message
Michael Herold (michaeljherold) wrote :

@Nicolò Chieffo
I have this problem and do not have the ``modelines'' gedit plugin enabled, so it seems that it's not related to that.

I've been using gedit for several hours every day for the past week and have only noticed it in the last hour. It is also intermittent in its manifesting, as it only occurs with some files. For instance, I have two Python files and a plaintext file that are open right now and it is only occurring in one of the Python files.

Aha! While typing this reply, I tested something. My indentation was messed up in one function in the file that was giving me trouble (i.e. the indentation in that function was 8 spaces, while I want a setting of 8 spaces.) When I reset its indentation to the proper level (i.e. 4 spaces) and re-saved the file, it kept the 4 spaces setting. So it seems that gedit infers the setting upon save.

I'm not sure if this is related to the bug, but I thought I would include it for reference, in case this is the root of the problem for the original reporter.