[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swsw 09bb140ee3 096/146: * swsw.el (swsw-update): Use 'dot
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swsw 09bb140ee3 096/146: * swsw.el (swsw-update): Use 'dotimes' instead of 'while' |
Date: |
Wed, 25 May 2022 02:59:51 -0400 (EDT) |
branch: elpa/swsw
commit 09bb140ee34c16b77bba93cdbe2563291d002dbf
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>
* swsw.el (swsw-update): Use 'dotimes' instead of 'while'
---
swsw.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/swsw.el b/swsw.el
index 133ad2f929..9d33cdf27a 100644
--- a/swsw.el
+++ b/swsw.el
@@ -207,10 +207,9 @@ If set to ‘lighter’, use the mode line lighter of
‘swsw-mode’."
(set-keymap-parent swsw--id-map swsw-command-map)
(setq swsw--id-counter nil
swsw-window-count 0)
- (let ((acc 0) (len (swsw--get-id-length)))
- (while (< acc len)
- (push 0 swsw--id-counter)
- (setq acc (1+ acc))))
+ ;; Clear and resize ‘swsw--id-counter’ according to the ID length.
+ (dotimes (_var (swsw--get-id-length))
+ (push 0 swsw--id-counter))
(walk-windows #'swsw-update-window nil (swsw--get-scope)))
;;;; Display functions:
- [nongnu] elpa/swsw 13c92db0de 138/146: ; Fix build manifest, (continued)
- [nongnu] elpa/swsw 13c92db0de 138/146: ; Fix build manifest, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 57a040f4be 140/146: ; Indicate the mailing list is the "maintainer" of the package, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 0d7bf97dbb 142/146: ; Prepare for NonGNU ELPA inclusion, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 307b891692 127/146: ; Small fix in NEWS, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw c884983ae2 090/146: ; Fix makefile for OpenBSD, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw f66c043abc 067/146: Only call 'swsw-update' automatically when it's bound, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw dc4595546a 094/146: ; Change a message to a (more fitting in this context) user-error, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw b3e00165f2 073/146: ; Add latest changes to the NEWS file and indicate that 1.1.2 is WIP, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 69dfbd08de 083/146: ; Bump version to 2.0, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw dee158840a 100/146: ; Indicate that ELPA installation is not yet available, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 09bb140ee3 096/146: * swsw.el (swsw-update): Use 'dotimes' instead of 'while',
ELPA Syncer <=
- [nongnu] elpa/swsw 300a4e8e61 084/146: * swsw.el (swsw-delete): Fix when the other tracked window is a minibuffer, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 8b8c353938 143/146: ; Generate swsw-pkg.el' automatically, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 51b8c1eb7c 080/146: ; Update documentation according to latest changes, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 522bfb2da0 074/146: ; Add versioning scheme information to the NEWS file, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 92abfc5de4 119/146: ; Make some long lines short, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 910aea2c75 117/146: ; Declare all window commands should be called while 'swsw-mode' is active, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 862d945bdb 101/146: ; Ignore Emacs' backup files, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 0a3edee2e5 055/146: ; Bump version to 1.1.1 and update NEWS file, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw f9f64e0559 060/146: * swsw.el (swsw--get-id-length): Return 1 when there is one window tracked, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 07f26210e8 086/146: ; Add 'swsw-delete' fix to the NEWS file, ELPA Syncer, 2022/05/25