Bug 309751

Summary: "Disable swap file syncing" disables swap files completely
Product: kate Reporter: Bram Vandoren <bram.vandoren>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: przemek.kobel
Priority: NOR    
Version: 4.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 4.10

Description Bram Vandoren 2012-11-08 15:50:12 UTC
If I enable "Disable swap file syncing", kate disables the swap file is completely (it's not updated or created).

Reproducible: Always

Steps to Reproduce:
1. Enable "disable swap files syncing" in "Configure Kate" -> Editor Component -> Open/Save -> Advanced
Actual Results:  
Swap file is completely disabled.

Expected Results:  
Only disable the fsync call.

The option should be renamed to "disable swap file", fixed, or removed completely.
Comment 1 Christoph Cullmann 2012-11-09 18:08:05 UTC
Git commit f076a0de82a4534a42644c5f4aa8d914efad20cb by Christoph Cullmann.
Committed on 09/11/2012 at 19:07.
Pushed by cullmann into branch 'master'.

fix that disable swap file syncing caused no swap files at all
thanks for reporting this, stupid mistake

M  +2    -2    part/swapfile/kateswapfile.cpp

http://commits.kde.org/kate/f076a0de82a4534a42644c5f4aa8d914efad20cb
Comment 2 Dominik Haumann 2013-04-16 14:53:06 UTC
*** Bug 309753 has been marked as a duplicate of this bug. ***
Comment 3 przemek.kobel 2013-05-02 10:01:12 UTC
Actually, it was a quite useful 'mistake' if you edit in directory mounted via sshfs. Right now such edits are not practical, since Kate is way too slow for this.

And I WAS using sshfs (not anymore after the 'fix'), since it is the only way for Kate to remember folding state across sessions, since files opened in sftp/fish/ftp folders are always completely unfolded.

Now, if anyone could stop immediate auto-unfolding code after typing an opening quote...