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

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

[nongnu] elpa/helm 7ff0b93b79 2/2: Allow configuring split-string separa


From: ELPA Syncer
Subject: [nongnu] elpa/helm 7ff0b93b79 2/2: Allow configuring split-string separator in helm async output (#2503, #2450)
Date: Fri, 22 Apr 2022 03:58:24 -0400 (EDT)

branch: elpa/helm
commit 7ff0b93b79117babeb5262b2f0754005b6d050ad
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>

    Allow configuring split-string separator in helm async output (#2503, #2450)
---
 helm-core.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/helm-core.el b/helm-core.el
index fb3da2cc00..43e63134af 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -1771,6 +1771,10 @@ The hook should takes one arg SOURCES.")
 
 (defvar helm-help-buffer-name "*Helm Help*"
   "The name of helm help buffer.")
+
+;; See bug#2503.
+(defvar helm-process-output-split-string-separator "\n"
+  "Separator to use when splitting helm async output.")
 
 ;;; Internal Variables
 ;;
@@ -5205,7 +5209,8 @@ This will work only in Emacs-26+, i.e. Emacs versions 
that have
 (defun helm-output-filter--process-source (process output-string source limit)
   (cl-dolist (candidate (helm-transform-candidates
                          (helm-output-filter--collect-candidates
-                          (split-string output-string "\n")
+                          (split-string output-string
+                                        
helm-process-output-split-string-separator)
                           (assq 'incomplete-line source))
                          source t))
     (setq candidate



reply via email to

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