[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swsw f0f65362d4 095/146: * swsw.el (swsw--set-id-chars): U
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swsw f0f65362d4 095/146: * swsw.el (swsw--set-id-chars): Use 'length' instead of 'nth' |
Date: |
Wed, 25 May 2022 02:59:50 -0400 (EDT) |
branch: elpa/swsw
commit f0f65362d4d6188ca7f7a59e05351c88515c223d
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>
* swsw.el (swsw--set-id-chars): Use 'length' instead of 'nth'
---
swsw.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/swsw.el b/swsw.el
index f2af70fb80..133ad2f929 100644
--- a/swsw.el
+++ b/swsw.el
@@ -82,7 +82,7 @@
"Set the variable ‘swsw-id-chars’.
Check that the new list has at least two elements, set SYM’s value to
CHARS, and call ‘swsw-update’."
- (when (< (length chars) 2)
+ (unless (nth 1 chars)
(user-error "‘swsw-id-chars’ should contain at least two characters"))
(set-default sym chars)
(when (fboundp 'swsw-update)
- [nongnu] elpa/swsw 61700ece84 135/146: ; Fix indentation in a few places, (continued)
- [nongnu] elpa/swsw 61700ece84 135/146: ; Fix indentation in a few places, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 6e036789af 103/146: ; Small Makefile modifications, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 48e4811965 089/146: ; Remove (incorrect) description of the 'make all' target in the Makefile, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw def4d94e43 013/146: ; Update README to better reflect the current state of the package, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 98c3bf944f 109/146: ; Improvement for swsw-mode's docstring, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw c153d9a32c 087/146: ; Add version information to customizable variables, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw e774ead908 104/146: ; Update mail address, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 64c66d244b 062/146: * swsw.el (swsw-ids): Removed, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 95c25ee03c 022/146: ; Bump version to 1.0 and update README, ELPA Syncer, 2022/05/25
- [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 <=
- [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, 2022/05/25
- [nongnu] elpa/swsw 5addab5009 027/146: ; Fix installing swsw.el as a package, ELPA Syncer, 2022/05/25