If enabled, File->Versions->"Always save a new version on closing" does not save a new version if, when closing a file that has changes, you click "Don't Save". My understanding from this: https://help.libreoffice.org/latest/en-US/text/shared/01/01190000.html?&DbPAR=SHARED&System=UNIX ...is that it should do so. If that's not the case, I believe it should do so (in cases where "Don't Save" is clicked by accident, as I recently did and lost a lot of work.) Tested in LibreOffice Writer on Kubuntu 23.04, v7.5.5.2
I confirm the behaviour in 7.6.1, but my gut feeling is that we should keep it as it is currently: if the user takes the _explicit_ action "don't save", we should respect that. But it means the feature "always save a version on closing" could be labelled better, maybe "Always save a version when closing and saving". And the documentation does not correspond to current behaviour: https://help.libreoffice.org/7.6/en-US/text/shared/01/01190000.html (Just noting that versioning and filesave are not independent: saving a version automatically saves the file. So saying "I don't want to save the changes" necessarily means "I don't want to save a version".) Marking as "new" as something needs to be done in any case. Either change the behaviour to match the label and documentation, or vice-versa.
I guess it comes down to whether the versioning system is just a way to explicitly and intentionally save versions, or a way to guard against work/data loss. Sounds like it is intended more as the former. If it's also intended as the latter, I'd advocate for saving a version regardless (maybe an extra option in the dialog for that, if it doesn't feel too complicated/bloaty), but I do understand your reasoning re: the user saying "do not save". It's just the accidental click that I'm thinking of. I like the re-phrase you suggest: "Always save a version when closing and saving". Thanks for the attention to it.