diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-01 22:14:07 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-01 22:14:07 -0400 |
| commit | e18cf02e22049ad3cc4ce96059edc37a5ecb6719 (patch) | |
| tree | de2d6f1f3eb3d4bede9c0642e78ef35c43178d17 /modules/cj-org-text-lib.el | |
| parent | a007fb21b563ee4f0f9c526b6623bbecaa9ee065 (diff) | |
| download | dotemacs-e18cf02e22049ad3cc4ce96059edc37a5ecb6719.tar.gz dotemacs-e18cf02e22049ad3cc4ce96059edc37a5ecb6719.zip | |
feat(buffer-file): confirmation policy for the destructive C-; b operations
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.
Diffstat (limited to 'modules/cj-org-text-lib.el')
0 files changed, 0 insertions, 0 deletions
