Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make window-to-win and restore keep track or window-parameters #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/workgroups2.el
Original file line number Diff line number Diff line change
Expand Up @@ -1938,6 +1938,8 @@ as Workgroups' command remappings."
(cond ((not wg-restore-point) win-start)
((eq win-point :max) (point-max))
(t win-point)))
(dolist (pair (wg-win-parameter win 'window-parameters))
(set-window-parameter window (car pair) (cdr pair)))
(when (>= win-start (point-max)) (recenter))))

(when wg-restore-window-dedicated-p
Expand Down Expand Up @@ -1990,6 +1992,10 @@ Return value."
:minibuffer-scroll (eq window minibuffer-scroll-window)
:dedicated (window-dedicated-p window)
:buf-uid (wg-buffer-uid-or-add (window-buffer window))))
(wg-set-win-parameter win 'window-parameters (let ((result))
(dolist (p (window-parameters window) result)
(when (cdr (assq (car p) window-persistent-parameters))
(add-to-list 'result p t)))))
(unless (version< emacs-version "24")
;; To solve: https://github.com/pashinin/workgroups2/issues/51
;; shouldn't ignore here
Expand Down