[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm 7b162795ca 3/7: Fix DRY in helm-output-filter
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm 7b162795ca 3/7: Fix DRY in helm-output-filter |
Date: |
Wed, 11 Jun 2025 04:02:06 -0400 (EDT) |
branch: elpa/helm
commit 7b162795cacebae3ca3e79da0349591e9fb765cd
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Fix DRY in helm-output-filter
---
helm-core.el | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/helm-core.el b/helm-core.el
index 6adfda0fde..86e6e5f4b0 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -5534,7 +5534,8 @@ This will work only in Emacs-26+, i.e. Emacs versions
that have
(source (cdr process-assoc))
(insertion-marker (assoc-default 'insertion-marker source))
(incomplete-line-info (assq 'incomplete-line source))
- (item-count-info (assq 'item-count source)))
+ (item-count-info (assq 'item-count source))
+ (multiline (assq 'multiline source)))
(with-helm-buffer
(save-excursion
(if insertion-marker
@@ -5558,17 +5559,15 @@ This will work only in Emacs-26+, i.e. Emacs versions
that have
(pop lines))
(setq candidates (nreverse candidates))
(cl-dolist (candidate (helm-transform-candidates candidates source
t))
- (if (assq 'multiline source)
- (let ((start (point)))
- (unless (zerop (cdr (assq 'item-count source)))
- (helm-insert-candidate-separator))
- (helm-insert-match candidate 'insert-before-markers
- (1+ (cdr (assq 'item-count source)))
- source)
- (put-text-property start (point) 'helm-multiline t))
+ (let ((start (point)))
+ (unless (or (not multiline)
+ (zerop (cdr (assq 'item-count source))))
+ (helm-insert-candidate-separator))
(helm-insert-match candidate 'insert-before-markers
(1+ (cdr (assq 'item-count source)))
- source))
+ source)
+ (when multiline
+ (put-text-property start (point) 'helm-multiline t)))
(cl-incf (cdr item-count-info))
(when (>= (cdr item-count-info) (helm-candidate-number-limit
source))
(process-put process 'reach-limit t)
- [nongnu] elpa/helm updated (01b2efc256 -> 474abc30c0), ELPA Syncer, 2025/06/11
- [nongnu] elpa/helm 75b07ed20c 2/7: Simplify helm-output-filter, ELPA Syncer, 2025/06/11
- [nongnu] elpa/helm 7b162795ca 3/7: Fix DRY in helm-output-filter,
ELPA Syncer <=
- [nongnu] elpa/helm 474abc30c0 7/7: pop lines directly instead of doing it at end of loop, ELPA Syncer, 2025/06/11
- [nongnu] elpa/helm 4895397ef3 6/7: Cleanup and add comments in helm-output-filter, ELPA Syncer, 2025/06/11
- [nongnu] elpa/helm e15fea9545 1/7: Fix id-utils sentinel, ELPA Syncer, 2025/06/11
- [nongnu] elpa/helm 7da8f04e15 4/7: Simplify helm-kill-async-processes, ELPA Syncer, 2025/06/11
- [nongnu] elpa/helm 644d4c6e82 5/7: Handle filter-one-by-one in process filter, ELPA Syncer, 2025/06/11