Check for possibly existing first window config
If desktop.el is used, eyebrowse-specific data is saved and restored since these are kept as frame parameters (although the window configs are impossible to serialize properly and desktop.el won't work properly at all), so unconditionally inserting a first config is not fine. Fixes #28.
This commit is contained in:
@ -219,8 +219,9 @@ If FRAME is nil, use current frame. TYPE can be any of
|
||||
"Initialize Eyebrowse for the current frame."
|
||||
(eyebrowse--set 'last-slot 1 frame)
|
||||
(eyebrowse--set 'current-slot 1 frame)
|
||||
(eyebrowse--insert-in-window-config-list
|
||||
(eyebrowse--current-window-config 1) frame))
|
||||
(unless (eyebrowse--window-config-present-p 1 frame)
|
||||
(eyebrowse--insert-in-window-config-list
|
||||
(eyebrowse--current-window-config 1) frame)))
|
||||
|
||||
(defun eyebrowse--update-window-config-element (new-element)
|
||||
"Replace the old element with NEW-ELEMENT in the window config list.
|
||||
|
||||
Reference in New Issue
Block a user