From 4858ab78937e6b5c6827f10a7901d7135ba197af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Marks?= Date: Sun, 26 Oct 2025 18:26:59 -0400 Subject: [PATCH] Restore frame explicit name and geometry when loading a set Alter bufferlo--bookmark-frame-handler to treat bufferlo--bookmark-set-loading the same as new-frame-p. The logic is that bufferlo--bookmark-set-handler first restores the frameset which is the moral equivalent of a new frame. --- bufferlo.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bufferlo.el b/bufferlo.el index 4a32210..6568905 100644 --- a/bufferlo.el +++ b/bufferlo.el @@ -3013,7 +3013,7 @@ Returns nil on success, non-nil on abort." 'restore-geometry)) (selected-frame)))) (with-selected-frame frame - (when new-frame-p + (when (or new-frame-p bufferlo--bookmark-set-loading) ;; Restore name (when bufferlo-bookmark-frame-persist-frame-name (when-let* ((frame-name (alist-get 'bufferlo--frame-name bookmark))) @@ -3079,10 +3079,10 @@ Returns nil on success, non-nil on abort." 'bufferlo-bookmark-frame-handler-functions bookmark-name fbm - new-frame-p + (or new-frame-p bufferlo--bookmark-set-loading) frame))) - (unless (or new-frame-p pop-up-frames) + (unless (or new-frame-p bufferlo--bookmark-set-loading pop-up-frames) ;; Switch to the to-be-selected buffer in the current frame. ;; This is a workaround for bookmark-jump if called with display-func ;; set to something like pop-to-buffer-same-window (the default).