emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals-release/activities a6b7ec1816 032/103: Fix: Mutation of


From: ELPA Syncer
Subject: [elpa] externals-release/activities a6b7ec1816 032/103: Fix: Mutation of window state
Date: Tue, 30 Jan 2024 03:57:48 -0500 (EST)

branch: externals-release/activities
commit a6b7ec1816d27af44743ea6f7a47c09ed67de0dc
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    Fix: Mutation of window state
    
    I hope, anyway.  Something is still leaving actual buffer objects in
    the window state sometimes, but I don't know when it happens or what
    causes it.  If neither of these changes fixes it, it will probably be
    very tedious to fix.
---
 activity-tabs.el | 4 +++-
 activity.el      | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/activity-tabs.el b/activity-tabs.el
index 60022b80ae..c518e74368 100644
--- a/activity-tabs.el
+++ b/activity-tabs.el
@@ -86,7 +86,9 @@ Selects its tab, making one if needed.  Its state is not 
changed."
   (if-let ((tab (activity-tabs--tab activity)))
       (tab-bar-switch-to-tab (alist-get 'name tab))
     (tab-bar-new-tab))
-  (tab-bar-rename-tab (activity-name-for activity)))
+  (tab-bar-rename-tab (activity-name-for activity))
+  ;; Not sure if calling `redisplay' is necessary.
+  (redisplay))
 
 (defun activity-tabs--tab (activity)
   "Return ACTIVITY's tab."
diff --git a/activity.el b/activity.el
index f265bfb3bd..02e9c60a65 100644
--- a/activity.el
+++ b/activity.el
@@ -464,7 +464,7 @@ activity's name is NAME."
                                                      
window-persistent-parameters))
                (state
                 ;; NOTE: We copy the state so as not to mutate the one in 
storage.
-                (activity--bufferize-window-state (copy-sequence state))))
+                (activity--bufferize-window-state (copy-tree state))))
     ;; HACK: Since `bookmark--jump-via' insists on calling a buffer-display
     ;; function after handling the bookmark, we use an immediate timer to
     ;; set the window configuration.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]