mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-10 00:00:39 -08:00
* lisp/emacs-lisp/package.el (list-packages): Call refresh in right buffer
This commit is contained in:
parent
9a7ddde977
commit
d06eeb85e0
1 changed files with 4 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue