If a file has never been saved, and its contents is empty, please do no ask to save the file before closing it. I will often open Kate as a quick buffer for any number of tasks (view web page source code, quick note, etc) and if there is no text to save, then just close without a prompt. Thanks.
If there is no content in a file and it is not modified, it will be closed silently. If the contents is modified, we always ask, that's standard behavior we don't plan to change it, sorry.
Thanks, no problem.
*** Bug 316558 has been marked as a duplicate of this bug. ***
This wish came up just twice in the last 12 years. I'm not convinced that this feature is really wanted. In fact, it might even be confusing. Think of writing a long text and then removing it by accident. Closing Kate/KWrite will loose all the data, no matter how large the undo/redo history is. It may be a constructed use case, but still, if the file is modified, it just makes sense to ask the user by default what to do. If at all, it would be ok to add an option "[ ] Do not ask again for empty unsafed buffers" in the dialog or maybe add an option. But given that this feature doesn't seem to be desperately wanted, I'd just stick with the current behavior for now.