[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bufferlo fbec2df3bd 28/37: Fix undelete-frame
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/bufferlo fbec2df3bd 28/37: Fix undelete-frame |
|
Date: |
Sun, 5 Nov 2023 09:57:33 -0500 (EST) |
branch: externals/bufferlo
commit fbec2df3bd8ec294014ab79300a73ba62af7550a
Author: Florian Rommel <mail@florommel.de>
Commit: Florian Rommel <mail@florommel.de>
Fix undelete-frame
---
bufferlo.el | 29 ++++++++++++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
diff --git a/bufferlo.el b/bufferlo.el
index 06ab725785..cf23234383 100644
--- a/bufferlo.el
+++ b/bufferlo.el
@@ -129,15 +129,16 @@ This is a list of regular expressions that match buffer
names."
;; Include/exclude buffers
(add-hook 'after-make-frame-functions
#'bufferlo--include-exclude-buffers)
(add-hook 'tab-bar-tab-post-open-functions
#'bufferlo--tab-include-exclude-buffers)
- ;; Desktop support & duplicate/move tabs
+ ;; Save/restore local buffer list
(advice-add #'window-state-get :around #'bufferlo--window-state-get)
(advice-add #'window-state-put :after #'bufferlo--window-state-put)
+ ;; Desktop support
(advice-add #'frameset--restore-frame :around #'bufferlo--activate)
- (advice-add #'frameset-save :around #'bufferlo--activate)
+ ;; Duplicate/move tabs
(advice-add #'tab-bar-select-tab :around #'bufferlo--activate-force)
- (advice-add #'tab-bar--tab :around #'bufferlo--activate)
- ;; Clone frame
+ ;; Clone & undelete frame
(advice-add #'clone-frame :around #'bufferlo--activate-force)
+ (advice-add #'undelete-frame :around #'bufferlo--activate-force)
;; Switch-tab workaround
(advice-add #'tab-bar-select-tab :around
#'bufferlo--clear-buffer-lists-activate)
(advice-add #'tab-bar--tab :after #'bufferlo--clear-buffer-lists))
@@ -148,15 +149,16 @@ This is a list of regular expressions that match buffer
names."
;; Include/exclude buffers
(remove-hook 'after-make-frame-functions
#'bufferlo--include-exclude-buffers)
(remove-hook 'tab-bar-tab-post-open-functions
#'bufferlo--tab-include-exclude-buffers)
- ;; Desktop support & duplicate/move tabs
+ ;; Save/restore local buffer list
(advice-remove #'window-state-get #'bufferlo--window-state-get)
(advice-remove #'window-state-put #'bufferlo--window-state-put)
+ ;; Desktop support
(advice-remove #'frameset--restore-frame #'bufferlo--activate)
- (advice-remove #'frameset-save #'bufferlo--activate)
+ ;; Duplicate/move tabs
(advice-remove #'tab-bar-select-tab #'bufferlo--activate-force)
- (advice-remove #'tab-bar--tab #'bufferlo--activate)
- ;; Clone frame
+ ;; Clone & undelete frame
(advice-remove #'clone-frame #'bufferlo--activate-force)
+ (advice-remove #'undelete-frame #'bufferlo--activate-force)
;; Switch-tab workaround
(advice-remove #'tab-bar-select-tab
#'bufferlo--clear-buffer-lists-activate)
(advice-remove #'tab-bar--tab #'bufferlo--clear-buffer-lists)))
@@ -308,14 +310,11 @@ buffers, see `bufferlo-hidden-buffers'."
list))))
(defun bufferlo--window-state-get (oldfn &optional window writable)
- "Save the frame's buffer-list to the window state.
-Ignore buffers that are not able to be persisted in the desktop file."
+ "Save the frame's buffer-list to the window state."
(let ((ws (apply oldfn (list window writable))))
- (if bufferlo--desktop-advice-active
- (let* ((buffers (bufferlo--current-buffers (window-frame window)))
- (names (mapcar #'buffer-name buffers)))
- (if names (append ws (list (list 'bufferlo-buffer-list names))) ws))
- ws)))
+ (let* ((buffers (bufferlo--current-buffers (window-frame window)))
+ (names (mapcar #'buffer-name buffers)))
+ (if names (append ws (list (list 'bufferlo-buffer-list names))) ws))))
(defun bufferlo--window-state-put (state &optional window ignore)
"Restore the frame's buffer-list from the window state."
- [elpa] externals/bufferlo bfe906c2aa 12/37: Update README, (continued)
- [elpa] externals/bufferlo bfe906c2aa 12/37: Update README, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 931b9ee346 32/37: Version 0.2, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 1dd04e4b41 14/37: Better ibuffer support, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo c164b26a64 36/37: Compatibility improvements, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 82f51c31ab 23/37: desktop.el support: Fix error on deleted windows, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 8f82be00b1 30/37: Add basic buffer-menu support, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 914c381e9f 16/37: Fix buffer matching, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 46557c7f54 04/37: Minor changes, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo c000ff8398 09/37: Add bufferlo-non-local-buffer-p, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 23cbe682c4 15/37: More parameters, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo fbec2df3bd 28/37: Fix undelete-frame,
ELPA Syncer <=
- [elpa] externals/bufferlo 598e20cf3b 31/37: Fix tab duplication on emacs < 29, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 6f3b79369f 02/37: Add README, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 83586af819 07/37: Fix empty buffer list, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo d74f2c1ece 21/37: Add bufferlo-remove-non-exclusive-buffers, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 2fc945a81b 10/37: Update README, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 79eba76029 06/37: Include buried buffers, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo ecae697601 18/37: Fix local ibuffer buffer name, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 2bcbde24be 29/37: Update documentation, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 6d27fbd704 37/37: Add COPYING to elpaignore, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 1c16e19694 25/37: Fix frame predicate to include hidden buffers, ELPA Syncer, 2023/11/05