[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/buffer-expose bb95721 22/38: More cleanup
From: |
Clemens Radermacher |
Subject: |
[elpa] externals/buffer-expose bb95721 22/38: More cleanup |
Date: |
Mon, 25 Feb 2019 13:38:01 -0500 (EST) |
branch: externals/buffer-expose
commit bb95721bf67657d6a1b3c4b3ae6bc478e4a594d3
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>
More cleanup
---
buffer-expose.el | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/buffer-expose.el b/buffer-expose.el
index edb289e..e158a7e 100644
--- a/buffer-expose.el
+++ b/buffer-expose.el
@@ -379,7 +379,9 @@ amount of windows per page. If max is nil it defaults to
(defvar buffer-expose--window-list nil)
(defun buffer-expose-create-grid (x y)
- "Create window grid with X columns, Y rows."
+ "Create window grid with X columns, Y rows.
+
+Return list of windows created."
(let ((window-min-width 0)
(window-min-height 0)
(window-combination-resize t)
@@ -396,8 +398,7 @@ amount of windows per page. If max is nil it defaults to
(push (split-window-horizontally) ws)
(buffer-expose--other-window))
(balance-windows)
- (setq buffer-expose--window-list
- (nreverse ws))))
+ (nreverse ws)))
(defun buffer-expose--create-empty-buffer (&optional name)
"Create buffer for empty window with name NAME.
@@ -456,8 +457,8 @@ NAME defaults to `buffer-expose--empty-buffer-name'."
(defun buffer-expose--empty-window-p (w)
"Check if window W is an empty one."
- (string= (buffer-name (window-buffer w))
- buffer-expose--empty-buffer-name))
+ (eq (window-buffer w)
+ (get-buffer buffer-expose--empty-buffer-name)))
(defun buffer-expose-select-window (f &rest args)
"Advice for `select-window' for the overview.
@@ -581,7 +582,8 @@ MAX is the maximum of windows to display per page."
(let* ((cols (car rule))
(rows (cdr rule)))
(buffer-expose--save-state)
- (buffer-expose-create-grid cols rows)
+ (setq buffer-expose--window-list
+ (buffer-expose-create-grid cols rows))
(buffer-expose-fill-grid)
(buffer-expose--init-ui))))))
@@ -654,10 +656,7 @@ MAX is the maximum of windows to display per page."
(pop buffer-expose--prev-stack))
(select-window (frame-first-window)))
(if buffer-expose--buffer-list
- ;; make sure the selected window is always the first
(progn
- ;; make sure the first window is selected for filling
- (select-window (frame-first-window))
(buffer-expose-fill-grid)
;; update the new window for highlighting
(select-window (frame-first-window)))
- [elpa] externals/buffer-expose c5eb139 16/38: Add custom command example, (continued)
- [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, 2019/02/25
- [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 <=
- [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
- [elpa] externals/buffer-expose 0c189ad 32/38: Add buffer-expose-major-mode binding, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose 7e83772 23/38: Don't advice select-window. Use internal selection function instead., Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose 6fbc680 37/38: Code reordering, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose 1dea5ca 01/38: public release, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose 90675fa 05/38: Fixes according to checkdoc, Clemens Radermacher, 2019/02/25