cjohansson / emacs-ssh-deploy

A deployment plugin via Tramp for Emacs.
GNU General Public License v3.0
154 stars 6 forks source link

Make the plugin asynchrous #10

Closed cjohansson closed 8 years ago

cjohansson commented 8 years ago

(async-start ;; What to do in the child process (lambda () (message "This is a test") (sleep-for 3) 222)

;; What to do when it finishes (lambda (result) (message "Async process done, result should be 222: %s" result)))

https://github.com/jwiegley/emacs-async

cjohansson commented 8 years ago

Using start-process-shell-command and set-process-sentinel instead.

http://www.slac.stanford.edu/comp/unix/gnu-info/elisp_34.html