<table><tr><td style="">mperttunen created this revision.<br />mperttunen added a reviewer: KTextEditor.<br />mperttunen set the repository for this revision to R39 KTextEditor.<br />Restricted Application added subscribers: Frameworks, kwrite-devel.<br />Restricted Application added a project: Frameworks.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D4190" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Currently in the event that a file has variables set by the file type default settings and has variables set by a .kateconfig file, on initial file opening the variables from the .kateconfig file take precedence. However, when saving the file, variables are updated using the file type settings but the .kateconfig file is not reread, causing variables to change to their file type settings values.</p>
<p>Update the logic such that the file type settings are only reloaded when the file name changes, as is currently done for .kateconfig reading, to ensure that .kateconfig always takes precedence.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>For example, set "indent-width 8" in kate settings for Sources/C and create a directory with a .kateconfig file containing "kate: indent-width 4" and a file test.c. Open the file with Kate and modify it and save it. Before the patch on opening the indent width will be set to 4 and after saving it will be 8. After the patch the indent width will stay as 4 even after saving.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4190" rel="noreferrer">https://phabricator.kde.org/D4190</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/document/katedocument.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>mperttunen, KTextEditor<br /><strong>Cc: </strong>kwrite-devel, Frameworks<br /></div>