aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorArtur Malabarba2015-04-12 13:47:58 +0100
committerArtur Malabarba2015-04-12 13:47:58 +0100
commitd0fcb21254394e22542dbc350220db3bafe0cc13 (patch)
tree56e66b6e0a461e3c66bc3075581c4ad2477e54cf /lisp
parentd06eeb85e0445eddedc42480d9a0d9928eed357e (diff)
downloademacs-d0fcb21254394e22542dbc350220db3bafe0cc13.tar.gz
emacs-d0fcb21254394e22542dbc350220db3bafe0cc13.zip
* lisp/emacs-lisp/package.el (list-packages): Avoid redundant generate
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/package.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index dac70af9616..ded2faa54f6 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*'."
2951 ;; Fetch the remote list of packages. 2951 ;; Fetch the remote list of packages.
2952 (unless no-fetch (package-menu-refresh)) 2952 (unless no-fetch (package-menu-refresh))
2953 2953
2954 (package-menu--generate nil t)) 2954 ;; If we're not async, this would be redundant.
2955 (when package-menu-async
2956 (package-menu--generate nil t)))
2955 ;; The package menu buffer has keybindings. If the user types 2957 ;; The package menu buffer has keybindings. If the user types
2956 ;; `M-x list-packages', that suggests it should become current. 2958 ;; `M-x list-packages', that suggests it should become current.
2957 (switch-to-buffer buf))) 2959 (switch-to-buffer buf)))