Skip to content

Commit

Permalink
Merge cce5346 into 0896119
Browse files Browse the repository at this point in the history
  • Loading branch information
kidd committed Oct 31, 2017
2 parents 0896119 + cce5346 commit 793c057
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions helm-dash.el
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
;;
;; URL: http://github.com/areina/helm-dash
;; Version: 1.3.0
;; Package-Requires: ((helm "1.9.2") (cl-lib "0.5"))
;; Package-Requires: ((helm "1.9.2") (cl-lib "0.5") (async "1.9"))
;; Keywords: docs

;; This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -278,8 +278,11 @@ Report an error unless a valid docset is selected."
(defun helm-dash--install-docset (url docset-name)
"Download a docset from URL and install with name DOCSET-NAME."
(let ((docset-tmp-path (format "%s%s-docset.tgz" temporary-file-directory docset-name)))
(url-copy-file url docset-tmp-path t)
(helm-dash-install-docset-from-file docset-tmp-path)))
(async-start
(lambda ()
(url-copy-file url docset-tmp-path t))
(lambda (result)
(helm-dash-install-docset-from-file docset-tmp-path)))))

(defun helm-dash--ensure-created-docsets-path (docset-path)
"Check if DOCSET-PATH directory exists.
Expand Down

0 comments on commit 793c057

Please sign in to comment.