[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/altcaps 5c52ae6f7c 01/10: Do not use vectors and charac
From: |
ELPA Syncer |
Subject: |
[elpa] externals/altcaps 5c52ae6f7c 01/10: Do not use vectors and characters in altcaps-transform |
Date: |
Fri, 22 Sep 2023 12:57:26 -0400 (EDT) |
branch: externals/altcaps
commit 5c52ae6f7c2eeaeb23fe2866b61d06cd235c1402
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Do not use vectors and characters in altcaps-transform
---
altcaps.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/altcaps.el b/altcaps.el
index c7185cc47b..2bc0c0f690 100644
--- a/altcaps.el
+++ b/altcaps.el
@@ -129,13 +129,13 @@ font that disambiguates characters.)"
(defun altcaps-transform (string)
"Make STRING use alternating letter casing, ignoring blanks."
- (let ((s (vconcat (downcase string)))
+ (let ((s (split-string (downcase string) ""))
casing
chars)
(mapc (lambda (c)
- (when (string-match-p "[[:alpha:]]" (char-to-string c))
+ (when (string-match-p "[[:alpha:]]" c)
(cond
- ((when-let ((force-case (alist-get c
altcaps-force-character-casing)))
+ ((when-let ((force-case (alist-get c
altcaps-force-character-casing nil nil #'equal)))
(setq c (funcall force-case c)
casing force-case)))
((eq casing 'downcase)
@@ -146,7 +146,7 @@ font that disambiguates characters.)"
casing 'downcase))))
(push c chars))
s)
- (concat (reverse chars))))
+ (apply #'concat (nreverse chars))))
(defun altcaps-replace (string &optional start)
"Convert STRING in buffer to alternating letter casing.
- [elpa] externals/altcaps updated (61e7bc7d55 -> aee1fb74ac), ELPA Syncer, 2023/09/22
- [elpa] externals/altcaps 153329a7c8 09/10: Update to altcaps version 1.2.0, ELPA Syncer, 2023/09/22
- [elpa] externals/altcaps aee1fb74ac 10/10: Clarify statement in the README, ELPA Syncer, 2023/09/22
- [elpa] externals/altcaps 5c52ae6f7c 01/10: Do not use vectors and characters in altcaps-transform,
ELPA Syncer <=
- [elpa] externals/altcaps 6387f0483f 08/10: Update package Commentary in accordance with commit c5fc696, ELPA Syncer, 2023/09/22
- [elpa] externals/altcaps 896b1ea91e 04/10: Clarify that altcaps-transform enforces altcaps-force-character-casing, ELPA Syncer, 2023/09/22
- [elpa] externals/altcaps 885003e6b9 03/10: Remove outdated reference from the manual, ELPA Syncer, 2023/09/22
- [elpa] externals/altcaps 2643e7b123 07/10: Update link to mailing list, ELPA Syncer, 2023/09/22
- [elpa] externals/altcaps 75bbe67959 06/10: Update wording in README.md, ELPA Syncer, 2023/09/22
- [elpa] externals/altcaps c5fc696916 05/10: BREAKING make altcaps-force-character-casing value be a string, not character, ELPA Syncer, 2023/09/22
- [elpa] externals/altcaps ecc9003385 02/10: Deprecate 'altcaps-replace'; change it to 'altcaps-replace-region', ELPA Syncer, 2023/09/22