diff --git a/helm-dash.el b/helm-dash.el index f2204f4..176149d 100644 --- a/helm-dash.el +++ b/helm-dash.el @@ -326,8 +326,10 @@ If doesn't exist, it asks to create it." (when (helm-dash--ensure-created-docsets-path (helm-dash-docsets-path)) (let ((feed-url (format "%s/%s.xml" helm-dash-docsets-url docset-name)) (feed-tmp-path (format "%s%s-feed.xml" temporary-file-directory docset-name))) - (url-copy-file feed-url feed-tmp-path t) - (helm-dash--install-docset (helm-dash-get-docset-url feed-tmp-path) docset-name)))) + (funcall (if (fboundp 'make-thread) 'make-thread 'funcall) + (lambda () + (url-copy-file feed-url feed-tmp-path t) + (helm-dash--install-docset (helm-dash-get-docset-url feed-tmp-path) docset-name)))))) ;;;###autoload (defun helm-dash-async-install-docset (docset-name)