diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-05-02 08:39:45 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-05-02 08:39:45 +0200 |
commit | d6fdc0183c92debc861caeabd3d6ca8f643521d2 (patch) | |
tree | bd458e0bf070dec1ab1da2ef0495cedd0e4ac4ee /doc/Home.mdpp | |
parent | eebdb84b86e1f87b08e7401a907086de84444439 (diff) |
* doc/Home.mdpp: Simplify async example.
Diffstat (limited to 'doc/Home.mdpp')
-rw-r--r-- | doc/Home.mdpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/doc/Home.mdpp b/doc/Home.mdpp index d283ed65..f665b1ca 100644 --- a/doc/Home.mdpp +++ b/doc/Home.mdpp @@ -1176,17 +1176,11 @@ You will find several methods to distribute you candidates, the main ones are: ### Creating a source using the `helm-source-async` class (helm :sources (helm-build-async-source "test2" - :candidates-process - (lambda () - (let ((proc (start-process - "echo" helm-buffer "echo" "a\nb\nc\nd\ne"))) - (prog1 - proc - (set-process-sentinel - proc (lambda (process event) nil)))))) + :candidates-process + (lambda () + (start-process "echo" nil "echo" "a\nb\nc\nd\ne"))) :buffer "*helm test2*") - ### Create your own class inheriting from one of the main classes ### Create your source from your own class |