Closed tarsius closed 1 year ago
I don't think this fix is correct. Although it boils down to emacs not having a good way to check if a file is a subdirectory of another (as far as I can see).
temporary-file-directory
may not have a trailing slash, in this case checking the prefix could falsely detect a temp directory e.g. /tmp_simple_example
.This PR addresses the issues noted above https://codeberg.org/ideasman42/emacs-undo-fu-session/pulls/7
Please see the wip problem description at https://github.com/emacscollective/no-littering/blob/safer-backups/README.org#backup-files.