From 56f6058ebef35f95700f1bee6ebe96b0760bdb18 Mon Sep 17 00:00:00 2001 From: Florian Rommel Date: Sat, 14 Mar 2026 11:58:01 +0100 Subject: Disconnect frame bookmark in 'bufferlo-delete-frame-kill-buffers' Clear the frame bookmark after killing the buffers but before deleting the frame. This prevents the auto-save feature from overwriting an existing bookmark with the empty buffer list. * bufferlo.el (bufferlo-delete-frame-kill-buffers): Clear bookmark. --- bufferlo.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bufferlo.el b/bufferlo.el index 3f52e8d..5cadee2 100644 --- a/bufferlo.el +++ b/bufferlo.el @@ -1960,6 +1960,11 @@ argument INTERNAL-TOO is non-nil." ;; delete windows *and* their frame so we have to test if ;; the frame in question is still live. (when (frame-live-p frame) + ;; Something could go wrong while trying to delete the frame. + ;; Since we already killed all buffers we disconnect the bookmark. + ;; This prevents the auto-save feature from overwriting an existing + ;; bookmark with the empty buffer list. + (set-frame-parameter frame 'bufferlo-bookmark-frame-name nil) ;; TODO: Emacs 30 frame-deletable-p ;; account for top-level, non-child frames (when (= 1 (length (seq-filter -- cgit v1.0