With a region selected I can call this function "accdeb" (below) that gives me the right results in a list. How can I feed this list to helm ?
With the code below I get: wrong-number-of-arguments.
What am I doing wrong ?
(setq some-helm-source '((name . "stacktrace from region") (candidates . accdeb) (action . (lambda (candidate) (message "%s" candidate))))) (defun my-first-helm-command () (interactive) (helm :sources '(some-helm-source) :buffer "*helm backtrace*")) (defun accdeb (beg end) (interactive "r") (mapcar (lambda (arg) (shell-command-to-string (concat "/home/demetra/scripts/eaddrs2line.sh /my/workspace" " " arg))) (split-string (buffer-substring-no-properties beg end) "\n")))