Fix apply encoding-setting from per-directory-config-file
Review Request #1915 - Created Oct. 20, 2009 and discarded
Fix bug for loading encoding from per-directory-config, which did not work before, because setting encoding requires file-reloading, which was not done. What I have done: - read the dirconfig before loading the file, so the file has not to be loaded twice - only load the dirconfig, when we are not reloading (for example triggered by manual encoding change)
The encoding thing works for me. Perhaps somebody, who is more firm with kate-code, can confirm, that the change has not unwanted side effects.
the reordering looks imo good, but the !m_reloading check is not good imo: When you have a file and create a new kateconfig file, you'll have to close and reopen the file, instead of just reloading it, for it to take effect. Since lower down the variables get read, was this check really required? If so, you'll have to find a different way.
Please verify that the order is: 1. the global configuration, i.e. settings made in the user interface 2. the filetypes/modes configuration 3. the The File .kateconfig file 4. the modelines in the document itself I have no time atm at all. Cullmann or others? PS: If it works as expected that's fine. But it's not the same as a review ;)