cjohansson / emacs-ssh-deploy

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

termux emacs async method support issue #56

Closed bokuno closed 5 years ago

bokuno commented 5 years ago

When I was using emacs(26.1) in Termux, I found ssh-deploy could not use 'make-thread'. The warning output is: Warning (ssh-deploy): Neither make-thread nor async-start functions are available! But this emacs does have 'make-thread': make-thread is a built-in function in ‘C source code’. And elisp code like '(make-thread(lambda()(sleep-for 5)(message "worked!")))' really worked.

cjohansson commented 5 years ago

Ah seems to be a bug in the logic there, if you set (setq ssh-deploy-async-with-threads 1) it should work.

(if (and (fboundp 'make-thread)
           async-with-threads
           (> async-with-threads 0))
(progn ...)
(if (fboundp 'async-start)
    (progn ....)
(display-warning 'ssh-deploy "Neither make-thread nor async-start functions are available!"))))
cjohansson commented 5 years ago

The error message should be improved in this commit