[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swsw 04ace20d03 063/146: ; Fix indentation and compact str
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swsw 04ace20d03 063/146: ; Fix indentation and compact structure in some places |
Date: |
Wed, 25 May 2022 02:59:45 -0400 (EDT) |
branch: elpa/swsw
commit 04ace20d03b0b370272d221d495a43c41fb125cd
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>
; Fix indentation and compact structure in some places
---
swsw.el | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/swsw.el b/swsw.el
index 2751613993..a41d48d748 100644
--- a/swsw.el
+++ b/swsw.el
@@ -130,11 +130,8 @@ If set to ‘lighter’, use the mode line lighter of
‘swsw-mode’."
"Return the current length of a window ID."
(let ((windows (length (window-list-1 nil nil (swsw--get-scope)))))
;; If there is only one window, return 1.
- (if (= windows 1)
- 1
- (ceiling (log
- windows
- (length swsw-id-chars))))))
+ (if (= windows 1) 1
+ (ceiling (log windows (length swsw-id-chars))))))
(defvar swsw--id-counter nil
"Counter which determines the next possible ID.")
@@ -200,7 +197,7 @@ This command is intended to be used only when ‘swsw-mode’
is enabled."
(swsw--read-id (swsw--get-id-length))
(run-hooks 'swsw-after-select-hook))))
(let ((window (cdr (assoc id swsw-window-list))))
- (select-window (if window window (next-window)))))
+ (select-window (if window window (next-window)))))
;;;###autoload
(define-minor-mode swsw-mode
- [nongnu] elpa/swsw 2002152fb7 023/146: ; Add .gitignore file, (continued)
- [nongnu] elpa/swsw 2002152fb7 023/146: ; Add .gitignore file, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw f0f65362d4 095/146: * swsw.el (swsw--set-id-chars): Use 'length' instead of 'nth', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw bd1e527d83 121/146: * swsw.el (swsw-select, swsw-delete): Respect 'swsw-scope', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw cb2cb1e5cb 131/146: ; Small code style change, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw dbe46d5b86 070/146: * swsw.el (swsw-select): Don't select the next window for non-existent IDs, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 435e462891 115/146: ; Fix the required Emacs version in swsw-pkg.el, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw b2dcc60dab 136/146: ; Explain 'swsw--id-counter' more thoroughly, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 3f507e91c0 006/146: ; Fix docstring for 'swsw-mode', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 6695f8858e 034/146: ; Use '; ' for inline comment instead of '; ; ', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw b5ebc9e08a 106/146: Use lambdas for ':set' functions, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 04ace20d03 063/146: ; Fix indentation and compact structure in some places,
ELPA Syncer <=
- [nongnu] elpa/swsw 5addab5009 027/146: ; Fix installing swsw.el as a package, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 95fc96e8c1 092/146: ; Add a link to the Info node in the customization buffer, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw ebaa85abdd 031/146: ; Add a missing word to a comment, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 7d6968aa65 093/146: ; Bump version to 2.0.1, ELPA Syncer, 2022/05/25