[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master d06eeb8 3/3: * lisp/emacs-lisp/package.el (list-pac
From: |
Artur Malabarba |
Subject: |
[Emacs-diffs] master d06eeb8 3/3: * lisp/emacs-lisp/package.el (list-packages): Call refresh in right buffer |
Date: |
Sun, 12 Apr 2015 12:47:39 +0000 |
branch: master
commit d06eeb85e0445eddedc42480d9a0d9928eed357e
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>
* lisp/emacs-lisp/package.el (list-packages): Call refresh in right buffer
---
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 ad482e5..dac70af 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.