branch: elpa/helm commit 7ff0b93b79117babeb5262b2f0754005b6d050ad Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@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