aboutsummaryrefslogtreecommitdiff
path: root/tests/test-custom-buffer-file--destructive-confirms.el
Commit message (Collapse)AuthorAgeFilesLines
* feat(buffer-file): confirmation policy for the destructive C-; b operationsCraig Jennings2 days1-0/+163
Delete file (D) ran with no confirmation at all; erase, clear-to-top/bottom, and revert were a single keystroke from destroying unsaved edits; and raw revert-buffer prompted even when there was nothing to lose. Policy now: delete always confirms, naming the file (the VC path keeps vc-delete-file's own prompt); erase/clear/revert confirm only when a file-visiting buffer has unsaved edits, and stay fast otherwise. The delete workhorse is split into an unconfirmed internal so its existing tests keep exercising the file mechanics; 13 new tests cover the policy.