From e695e68d1e8a3a843b9b0a030e77a9ea00a84289 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 28 Nov 2012 20:42:42 +0900 Subject: [PATCH] fix bug --- emacs.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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))