Changeset - daa7f70255bb
[Not reviewed]
0 1 0
Sergey Pashinin - 11 years ago 2014-08-26 12:37:03
sergey@pashinin.com
optional arg window-tree
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/workgroups2.el
Show inline comments
 
@@ -2148,9 +2148,11 @@ a wtree."
 
    (wg-restore-window-tree-helper wtree)
 
    (awhen wg-window-tree-selected-window (select-window it))))
 

	
 
(defun wg-window-tree-to-wtree (window-tree)
 
(defun wg-window-tree-to-wtree (&optional window-tree)
 
  "Return the serialization (a wg-wtree) of Emacs window tree WINDOW-TREE."
 
  (wg-barf-on-active-minibuffer)
 
  (unless window-tree
 
    (setq window-tree (window-tree)))
 
  (cl-labels
 
      ((inner (w) (if (windowp w) (wg-window-to-win w)
 
                    (wg-dbind (dir edges . wins) w
0 comments (0 inline, 0 general)