[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/buffer-expose e78ca06 21/38: Cleanup
From: |
Clemens Radermacher |
Subject: |
[elpa] externals/buffer-expose e78ca06 21/38: Cleanup |
Date: |
Mon, 25 Feb 2019 13:38:01 -0500 (EST) |
branch: externals/buffer-expose
commit e78ca06ef087c86fc24c20d1e8fed4a65847e3d5
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>
Cleanup
---
buffer-expose.el | 32 ++++++++------------------------
1 file changed, 8 insertions(+), 24 deletions(-)
diff --git a/buffer-expose.el b/buffer-expose.el
index ce8a798..edb289e 100644
--- a/buffer-expose.el
+++ b/buffer-expose.el
@@ -190,7 +190,6 @@ question as its argument."
(define-key map (kbd "b") 'buffer-expose-left-window)
(define-key map (kbd "<right>") 'buffer-expose-right-window)
(define-key map (kbd "f") 'buffer-expose-right-window)
- (define-key map (kbd "C-h k") 'describe-key)
(define-key map (kbd "p") 'buffer-expose-up-window)
(define-key map (kbd "<up>") 'buffer-expose-up-window)
(define-key map (kbd "<down>") 'buffer-expose-down-window)
@@ -373,20 +372,9 @@ amount of windows per page. If max is nil it defaults to
(push buf bufs)))))
-(defun buffer-expose--window-list ()
- "Get window list of current grid.
-
-Windows are orderd by `buffer-expose--next-window'."
- (let ((ws ())
- (w (frame-first-window)))
- (push w ws)
- (while (setq w (buffer-expose--next-window w))
- (push w ws))
- (nreverse ws)))
-
(defun buffer-expose--other-window ()
- (select-window (next-window (selected-window) 'never)
- :no-record))
+ (let ((w (next-window (selected-window) 'never)))
+ (select-window w :no-record)))
(defvar buffer-expose--window-list nil)
@@ -961,17 +949,13 @@ F defaults to the currently selected window."
(interactive)
(let ((buf (window-buffer))
(w (get-buffer-window)))
- ;; move on in any direction possible
- (cond ((window-in-direction 'right)
- (windmove-right))
- ((window-in-direction 'below)
- (windmove-down))
- ((window-in-direction 'left)
- (windmove-left))
- ((window-in-direction 'above)
- (windmove-up)))
+ (select-window
+ (or (window-in-direction 'right)
+ (window-in-direction 'below)
+ (window-in-direction 'left)
+ (window-in-direction 'above)
+ (selected-window)))
(kill-buffer buf)
- ;; todo: on last one, reset
(setf (window-buffer w)
(get-buffer-create buffer-expose--empty-buffer-name))))
- [elpa] externals/buffer-expose 9a2393c 28/38: Cleanup, (continued)
- [elpa] externals/buffer-expose 9a2393c 28/38: Cleanup, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose 69bfeb1 15/38: Add binding for no stars, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose d05d136 27/38: Handle window configurations internally, don't use set-window-config, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose adeb508 35/38: Docstring fixes, Clemens Radermacher, 2019/02/25
- [elpa] externals/buffer-expose 260a2ed 20/38: Replace `windmove` with package commands, Clemens Radermacher, 2019/02/25
- [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 <=
- [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, 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