aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Malabarba2015-04-12 13:44:43 +0100
committerArtur Malabarba2015-04-12 13:45:30 +0100
commitd06eeb85e0445eddedc42480d9a0d9928eed357e (patch)
treed34c8b6ac13445d58349f27c4ea09fbf1a5276ba
parent9a7ddde977378cb5276a81476ae458889c403267 (diff)
downloademacs-d06eeb85e0445eddedc42480d9a0d9928eed357e.tar.gz
emacs-d06eeb85e0445eddedc42480d9a0d9928eed357e.zip
* lisp/emacs-lisp/package.el (list-packages): Call refresh in right buffer
-rw-r--r--lisp/emacs-lisp/package.el7
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*'."
2943 (add-hook 'package--post-download-archives-hook 2943 (add-hook 'package--post-download-archives-hook
2944 #'package-menu--post-refresh) 2944 #'package-menu--post-refresh)
2945 2945
2946 ;; Fetch the remote list of packages.
2947 (unless no-fetch (package-menu-refresh))
2948
2949 ;; Generate the Package Menu. 2946 ;; Generate the Package Menu.
2950 (let ((buf (get-buffer-create "*Packages*"))) 2947 (let ((buf (get-buffer-create "*Packages*")))
2951 (with-current-buffer buf 2948 (with-current-buffer buf
2952 (package-menu-mode) 2949 (package-menu-mode)
2950
2951 ;; Fetch the remote list of packages.
2952 (unless no-fetch (package-menu-refresh))
2953
2953 (package-menu--generate nil t)) 2954 (package-menu--generate nil t))
2954 ;; The package menu buffer has keybindings. If the user types 2955 ;; The package menu buffer has keybindings. If the user types
2955 ;; `M-x list-packages', that suggests it should become current. 2956 ;; `M-x list-packages', that suggests it should become current.