[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master d0fcb21: * lisp/emacs-lisp/package.el (list-package
From: |
Artur Malabarba |
Subject: |
[Emacs-diffs] master d0fcb21: * lisp/emacs-lisp/package.el (list-packages): Avoid redundant generate |
Date: |
Sun, 12 Apr 2015 12:50:40 +0000 |
branch: master
commit d0fcb21254394e22542dbc350220db3bafe0cc13
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>
* lisp/emacs-lisp/package.el (list-packages): Avoid redundant generate
---
lisp/emacs-lisp/package.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index dac70af..ded2faa 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -2951,7 +2951,9 @@ The list is displayed in a buffer named `*Packages*'."
;; Fetch the remote list of packages.
(unless no-fetch (package-menu-refresh))
- (package-menu--generate nil t))
+ ;; If we're not async, this would be redundant.
+ (when package-menu-async
+ (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.
(switch-to-buffer buf)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master d0fcb21: * lisp/emacs-lisp/package.el (list-packages): Avoid redundant generate,
Artur Malabarba <=