mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 12:21:20 +00:00
Slight modification on patch
This commit is contained in:
parent
b860f785a8
commit
33e302c88d
1 changed files with 5 additions and 12 deletions
|
|
@ -38,21 +38,14 @@
|
|||
;; Handle the case when it's called in the active minibuffer.
|
||||
(when (minibuffer-selected-window)
|
||||
(select-window (minibuffer-selected-window)))
|
||||
;; Remove window parameters that can cause problems
|
||||
;; with `delete-other-windows' and `split-window'.
|
||||
(unless (eq tab-bar-new-tab-choice 'clone)
|
||||
(set-window-parameter nil 'window-atom nil)
|
||||
(let ((side (window-parameter nil 'window-side)))
|
||||
(when side
|
||||
(walk-window-tree
|
||||
(lambda (window)
|
||||
(when (eq side (window-parameter window 'window-side))
|
||||
(set-window-parameter window 'window-side nil)))
|
||||
nil t))))
|
||||
(let ((ignore-window-parameters t))
|
||||
(let ((ignore-window-parameters t)
|
||||
(window--sides-inhibit-check t))
|
||||
(if (eq tab-bar-new-tab-choice 'clone)
|
||||
;; Create new unique windows with the same layout
|
||||
(window-state-put (window-state-get))
|
||||
;; Remove window parameters that can cause problems
|
||||
;; with `delete-other-windows' and `split-window'.
|
||||
(set-window-parameter nil 'window-atom nil)
|
||||
(delete-other-windows)
|
||||
(if (eq tab-bar-new-tab-choice 'window)
|
||||
;; Create new unique window from remaining window
|
||||
|
|
|
|||
Loading…
Reference in a new issue