]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/package.el: Small improvements
authorArtur Malabarba <bruce.connor.am@gmail.com>
Mon, 27 Apr 2015 21:04:38 +0000 (22:04 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Mon, 27 Apr 2015 21:06:32 +0000 (22:06 +0100)
(package--with-work-buffer-async): More informative error.
(package-install-user-selected-packages): Rename to
`package-install-selected-packages'.

lisp/emacs-lisp/package.el

index 0392f616862f73085910fa437e2d72e25227473f..81e0ee970e086266e6a7da97ae259246e9bf2368 100644 (file)
@@ -1135,7 +1135,8 @@ arguments see `package--with-work-buffer'."
                              (signal (cdar status) (cddr status)))
                          (goto-char (point-min))
                          (unless (search-forward "\n\n" nil 'noerror)
-                           (error "Invalid url response"))
+                           (error "Invalid url response in buffer %s"
+                             (current-buffer)))
                          (delete-region (point-min) (point))
                          ,@body)
                        (kill-buffer (current-buffer)))
@@ -1949,7 +1950,7 @@ The file can either be a tar file or an Emacs Lisp file."
     (package-install-from-buffer)))
 
 ;;;###autoload
-(defun package-install-user-selected-packages ()
+(defun package-install-selected-packages ()
   "Ensure packages in `package-selected-packages' are installed.
 If some packages are not installed propose to install them."
   (interactive)