]> git.eshelyaron.com Git - emacs.git/commit
* lisp/emacs-lisp/package.el: Revert buffer after any operation
authorArtur Malabarba <bruce.connor.am@gmail.com>
Wed, 17 Jun 2015 14:37:51 +0000 (15:37 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Wed, 17 Jun 2015 14:40:58 +0000 (15:40 +0100)
commita142b77028d6c418e0c26bfa093155f1a9cd433d
treef874d73a8b868a48eaa839ec52edb533064b0913
parent4b1613762fec33cd12c8484820392c5d7c74c83c
* lisp/emacs-lisp/package.el: Revert buffer after any operation

Call `package-menu--post-refresh' after any operation that changes
the package database (`package-install' and `package-delete').  To
avoid performance issues in large transactions, these functions
add `post-refresh' to `post-command-hook' instead of calling it
immediately.
(package-menu--mark-or-notify-upgrades): New function.
(list-packages): Add it to `package--post-download-archives-hook'.
(package-menu--post-refresh): Lose the upgrade-checking code, add
code to remove itself from `post-command-hook'.
(package-install, package-delete): Add it to `post-command-hook'.
(package-menu-execute): Don't call `package-menu--post-refresh'.
lisp/emacs-lisp/package.el