emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/which-key 85f17c0a4d 1/3: ; Use string-join to simplify


From: ELPA Syncer
Subject: [elpa] externals/which-key 85f17c0a4d 1/3: ; Use string-join to simplify and make meaning explicit
Date: Sat, 2 Mar 2024 21:59:02 -0500 (EST)

branch: externals/which-key
commit 85f17c0a4df0c94890b9e10af6ea402b24e20a3e
Author: Jeremy Bryant <jb@jeremybryant.net>
Commit: Justin Burkett <justin@burkett.cc>

    ; Use string-join to simplify and make meaning explicit
    
    * which-key.el (which-key--butlast-string):  Replace mapconcat by 
string-join.
---
 which-key.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/which-key.el b/which-key.el
index 8fdafbaaab..3eb27be8f1 100644
--- a/which-key.el
+++ b/which-key.el
@@ -1592,7 +1592,7 @@ Within these categories order using 
`which-key-key-order'."
   (if (stringp maybe-string) (string-width maybe-string) 0))
 
 (defsubst which-key--butlast-string (str)
-  (mapconcat #'identity (butlast (split-string str)) " "))
+  (string-join (butlast (split-string str)) " "))
 
 (defun which-key--match-replacement (key-binding replacement)
   ;; these are mode specific ones to ignore. The mode specific case is



reply via email to

[Prev in Thread] Current Thread [Next in Thread]