emacs-devel
[Top][All Lists]
Advanced

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

Re: async.el: A simple asynchronous framework for Emacs


From: John Wiegley
Subject: Re: async.el: A simple asynchronous framework for Emacs
Date: Wed, 20 Jun 2012 03:24:35 -0500
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (darwin)

>>>>> John Wiegley <address@hidden> writes:

>     (async-start-process "ls" "ls"
>                          (lambda (proc)
>                            (message (with-current-buffer (process-buffer proc)
>                                       (buffer-string))))
>                          "-la")

Perhaps a better syntax would be:

    (async-start-process '("ls" "-la")
                         (lambda (proc)
                           (message (with-current-buffer (process-buffer proc)
                                      (buffer-string)))))

It doesn't follow `start-process', the way that I was doing, but it mirrors
`async-start' much better.

John



reply via email to

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