]> git.eshelyaron.com Git - emacs.git/commit
* lisp/emacs-lisp/package.el: Refactor -with-work-buffer-async
authorArtur Malabarba <bruce.connor.am@gmail.com>
Sat, 14 Nov 2015 15:44:44 +0000 (15:44 +0000)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Sun, 15 Nov 2015 21:35:04 +0000 (21:35 +0000)
commit5f9153faaf767a039620a0a05a8ad0373cb24070
tree1d9ad8f98b5c9614d654a644573c0bf4cc0f2035
parent353f5e76641c338dc4bfe0ac8e9aa84d23bac1fe
* lisp/emacs-lisp/package.el: Refactor -with-work-buffer-async

(package--with-work-buffer-async): Reimplement as
`package--with-response-buffer'.
(package--with-work-buffer): Mark obsolete.
(package--with-response-buffer): New macro. This is a more self
contained and less contrived version of
`package--with-work-buffer-async'.  It uses keyword arguments,
doesn't have async on the name, doesn't fallback on
`package--with-work-buffer', and has _much_ simpler error
handling.

(package--check-signature, package--download-one-archive)
(package-install-from-archive, describe-package-1): Use it.

(package--download-and-read-archives): Let
`package--download-one-archive' take care of calling
`package--update-downloads-in-progress'.
lisp/emacs-lisp/package.el