diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-04-12 13:44:43 +0100 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-04-12 13:45:30 +0100 |
commit | d06eeb85e0445eddedc42480d9a0d9928eed357e (patch) | |
tree | d34c8b6ac13445d58349f27c4ea09fbf1a5276ba /lisp/emacs-lisp | |
parent | 9a7ddde977378cb5276a81476ae458889c403267 (diff) | |
download | emacs-d06eeb85e0445eddedc42480d9a0d9928eed357e.tar.gz emacs-d06eeb85e0445eddedc42480d9a0d9928eed357e.tar.bz2 emacs-d06eeb85e0445eddedc42480d9a0d9928eed357e.zip |
* lisp/emacs-lisp/package.el (list-packages): Call refresh in right buffer
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/package.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index ad482e564b0..dac70af9616 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -2943,13 +2943,14 @@ The list is displayed in a buffer named `*Packages*'." (add-hook 'package--post-download-archives-hook #'package-menu--post-refresh) - ;; Fetch the remote list of packages. - (unless no-fetch (package-menu-refresh)) - ;; Generate the Package Menu. (let ((buf (get-buffer-create "*Packages*"))) (with-current-buffer buf (package-menu-mode) + + ;; Fetch the remote list of packages. + (unless no-fetch (package-menu-refresh)) + (package-menu--generate nil t)) ;; The package menu buffer has keybindings. If the user types ;; `M-x list-packages', that suggests it should become current. |