[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iwindow 89989ad071 10/13: Minor cleanup
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iwindow 89989ad071 10/13: Minor cleanup |
Date: |
Sun, 27 Nov 2022 16:01:13 -0500 (EST) |
branch: elpa/iwindow
commit 89989ad071c2cd6e3d413ff6c825caad641447ed
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
Minor cleanup
---
iwindow.el | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/iwindow.el b/iwindow.el
index c808bd26f9..cd8d166f8b 100644
--- a/iwindow.el
+++ b/iwindow.el
@@ -53,8 +53,7 @@
:link '(url-link "https://codeberg.org/akib/emacs-iwindow")
:prefix "iwindow-")
-(defcustom iwindow-selection-keys
- '(?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9)
+(defcustom iwindow-selection-keys (number-sequence ?0 ?9)
"List of keys to use to select window.
Each element should be a key that `read-key' can return."
@@ -141,8 +140,7 @@ list of form (OPTION...), whose length of no more than the
length of
(walk tree nil))
(run-hook-wrapped 'iwindow-decoration-functions
(lambda (fn) (ignore (push fn decorators))))
- (cl-labels ((call-decorators
- (fns)
+ (cl-labels ((call-decorators (fns)
(with-selected-window current-window
(if fns
(funcall (car fns) windows
@@ -156,9 +154,9 @@ list of form (OPTION...), whose length of no more than the
length of
Return the window chosen."
(if (windowp tree)
- (prog1
- tree
- (redraw-display))
+ (progn
+ (redraw-display)
+ tree)
(let ((option nil)
(choices (cl-mapcar #'cons iwindow-selection-keys
tree)))
@@ -192,7 +190,7 @@ WINDOW and ignore WINDOW when PREDICATE returns nil."
(seq-filter predicate windows)
windows)))
(when candidates
- (if (cdr candidates) ; (> (length candidates) 1)
+ (if (cdr candidates) ; (length> candidates 1)
(iwindow--ask (iwindow--make-decision-tree
(vconcat windows) 0 (length windows)
predicate))
@@ -215,7 +213,7 @@ WINDOWS and CALLBACK is described in the docstring of
(alist-get (selected-window)
',windows)))
(mapconcat
- (apply-partially #'string ? )
+ (apply-partially #'string ?\s)
keys "")
',(alist-get (current-buffer)
original-mode-lines)))))
- [nongnu] branch elpa/iwindow created (now 144c402d5f), ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow bfc5e97dfe 03/13: Add iwindow-swap, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 16c6c97143 09/13: Don't error when PREDICATE is nil, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 89989ad071 10/13: Minor cleanup,
ELPA Syncer <=
- [nongnu] elpa/iwindow fc092c6b64 12/13: Lower Emacs minimum requirement to 24.3, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow cbbcdb32b2 05/13: Suppress runtime warning, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow f7b47e3bd8 04/13: Show keys for minibuffer on minibuffer, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 13b9c558bf 11/13: Replace cl-labels with named-let, use Compat if needed, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 144c402d5f 13/13: Add .dir-locals.el, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 6c5ea91142 02/13: Allow to use any arbitrary face to highlight, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 285f40ff09 01/13: Add iwindow-select, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow a32c522f80 06/13: Add iwindow-delete and iwindow-delete-others, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow f5cf9ed724 07/13: Don't show raw key code on unbound key, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 63426c55a9 08/13: Make window keys more predictable, ELPA Syncer, 2022/11/27