[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu 2cd4bba3c7 3/5: Minor cleanup, reduce allocations
From: |
ELPA Syncer |
Subject: |
[elpa] externals/corfu 2cd4bba3c7 3/5: Minor cleanup, reduce allocations |
Date: |
Wed, 10 Jul 2024 06:57:44 -0400 (EDT) |
branch: externals/corfu
commit 2cd4bba3c746a91670a1d356531e27b77a21d058
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Minor cleanup, reduce allocations
---
corfu.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/corfu.el b/corfu.el
index 3993ddbdca..6fd0cb25cb 100644
--- a/corfu.el
+++ b/corfu.el
@@ -723,10 +723,9 @@ FRAME is the existing frame."
(defun corfu--format-candidates (cands)
"Format annotated CANDS."
- (setq cands
- (cl-loop for c in cands collect
- (cl-loop for s in c collect
- (replace-regexp-in-string "[ \t]*\n[ \t]*" " " s))))
+ (cl-loop for c in cands do
+ (cl-loop for s in-ref c do
+ (setf s (replace-regexp-in-string "[ \t]*\n[ \t]*" " "
s))))
(let* ((cw (cl-loop for x in cands maximize (string-width (car x))))
(pw (cl-loop for x in cands maximize (string-width (cadr x))))
(sw (cl-loop for x in cands maximize (string-width (caddr x))))
- [elpa] externals/corfu updated (03558e1935 -> c1d75d3cd1), ELPA Syncer, 2024/07/10
- [elpa] externals/corfu 062e4f08d6 4/5: Call completion-metadata-get without advices, ELPA Syncer, 2024/07/10
- [elpa] externals/corfu 2cd4bba3c7 3/5: Minor cleanup, reduce allocations,
ELPA Syncer <=
- [elpa] externals/corfu b7099b4b71 2/5: Formatting, ELPA Syncer, 2024/07/10
- [elpa] externals/corfu c1d75d3cd1 5/5: Update comment, ELPA Syncer, 2024/07/10
- [elpa] externals/corfu bedd0fa5be 1/5: corfu-popupinfo: Compare candidates with equal-including-properties (Fix #476), ELPA Syncer, 2024/07/10