#1635 EditorConfig gets confused after buffer save with :tabSize=

open
Hong Xu
None
5
2012-08-04
2012-08-04
Jarek Czekalski
No

I discovered .editorconfig has priority over jedit properties inside the file, like :tabSize=8:
However jedit reads these properties also at buffer save, while EditorConfig does not. EditorConfig behaviour should be consistent and not change after buffer save. Maybe after save the editor config should reload the properties, like it does after load.

To reproduce:
1. .editorconfig
[*]
tab_width = 3
indent_size = 3

2. inside the file:
:tabSize=8:indentSize=8:

After opening the file, tab moves by 3. After save: by 8.

Expected behaviour: don't change the step after save.

Discussion

  • Hong Xu
    Hong Xu
    2012-08-11

    Modeline is expected to have higher priority. However, I am wondering why modeline is loaded before all the three following BufferUpdate event:

    BufferUpdate.CREATED
    BufferUpdate.LOADED
    BufferUpdate.LOAD_STARTED

    If modeline is loaded before all these event, then any plugin cannot do something before modeline is loaded?

     
  • How about reading modeline again after setting parameters read from .editorconfig?

     
  • Hong Xu
    Hong Xu
    2013-03-11

    Sorry I didn't see this notification. Do you have any idea how can I trigger the readline loading process? Thanks.

     
  • Hong Xu
    Hong Xu
    2013-06-02

    Any hints for me? Thanks!