diff --git a/emacs.el b/emacs.el index 5af9d21..3788dd2 100644 --- a/emacs.el +++ b/emacs.el @@ -50,10 +50,10 @@ otherwise the path where the library installed." (if (or force-download-p (not locate-p)) (progn (condition-case nil (progn (message "Downloading %s..." url) - (require 'url) - (url-copy-file url - lpath - t) + (or (download-file url + lpath + t) + (error "Download failed")) (message "Downloading %s...done") (when (and byte-compile-p (require 'bytecomp nil t))