[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/buffer-expose 07ac8cf 12/38: Create window list without
From: |
Clemens Radermacher |
Subject: |
[elpa] externals/buffer-expose 07ac8cf 12/38: Create window list without redisplay |
Date: |
Mon, 25 Feb 2019 13:37:58 -0500 (EST) |
branch: externals/buffer-expose
commit 07ac8cfad6ee2610ef44ef1984b12a0491ea5c85
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>
Create window list without redisplay
---
buffer-expose.el | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/buffer-expose.el b/buffer-expose.el
index c2365cc..43e3dcf 100644
--- a/buffer-expose.el
+++ b/buffer-expose.el
@@ -375,18 +375,20 @@ Windows are orderd by `buffer-expose--next-window'."
"Create window grid with X columns, Y rows."
(let ((window-min-width 0)
(window-min-height 0)
- (window-combination-resize t))
+ (window-combination-resize t)
+ (ws (list (selected-window))))
(delete-other-windows)
(dotimes (_ (1- x))
- (split-window-horizontally)
+ (push (split-window-horizontally) ws)
(dotimes (_ (1- y))
- (split-window-vertically))
+ (push (split-window-vertically) ws))
(other-window y))
(dotimes (_ (1- y))
- (split-window-vertically))
+ (push (split-window-vertically) ws))
(balance-windows)
+ ;; TODO: order left to right
(setq buffer-expose--window-list
- (buffer-expose--window-list))))
+ (nreverse ws))))
(defun buffer-expose--create-empty-buffer (&optional name)
"Create buffer for empty window with name NAME.
@@ -805,13 +807,10 @@ F defaults to the first window of the overview."
F defaults to the currently selected window."
(let ((f (or f (selected-window)))
- (w nil)
- (nw nil))
+ (w nil))
(or (window-in-direction 'right f)
(when (setq w (window-in-direction 'below f))
- (while (setq w (window-in-direction 'left w))
- (setq nw w))
- nw))))
+ (buffer-expose--first-window-in-row w)))))
(defun buffer-expose--prev-window (&optional f)
"Get previous window for window F.
- [elpa] externals/buffer-expose 713238b 38/38: Checkdoc fixes, (continued)
- [elpa] externals/buffer-expose 713238b 38/38: Checkdoc fixes, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose 07cea91 31/38: Code refactoring, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose f3fd7fa 13/38: Add command omitting star buffers, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose 8dec782 07/38: Require cl-lib, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose ea8d671 11/38: Fix regex list type, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose e78ca06 21/38: Cleanup, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose c0034f5 26/38: Code reordering, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose 5748ffb 34/38: Update docstrings, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose c5eb139 16/38: Add custom command example, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose e52f55d 06/38: Filter completions buffer by default, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose 07ac8cf 12/38: Create window list without redisplay,
Clemens Radermacher <=
- [elpa] externals/buffer-expose 428568c 09/38: Add regex option for buffers to hide, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose 814a557 36/38: Fix copyright, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose 03fc259 17/38: Fix ordering of buffer view (left>right, top>down), Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose 963b107 33/38: Update description, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose 5e58e22 19/38: Refactor buffer-expose--other-window, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose eebf28a 30/38: Cleanup, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose c47728e 18/38: Don't use other-window which records the switch, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose bb95721 22/38: More cleanup, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose e4b865e 24/38: Introduce user option to wrap around for vertical movement, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose 972a18d 08/38: Add cl-lib to package requires, Clemens Radermacher, 2019/02/25