mirror of
https://github.com/correl/melpa.git
synced 2024-11-15 03:00:14 +00:00
Better method of showing archive-contents after building recipe
This removes a redundant "changed on disk" prompt when the file is already open.
This commit is contained in:
parent
8c2ffb5064
commit
d89cc499c5
1 changed files with 3 additions and 2 deletions
|
@ -924,8 +924,9 @@ FILES is a list of (SOURCE . DEST) relative filepath pairs."
|
|||
(let ((pkg-name (intern (file-name-nondirectory (buffer-file-name)))))
|
||||
(package-build-archive pkg-name)
|
||||
(save-current-buffer
|
||||
(find-file-other-window
|
||||
(expand-file-name "archive-contents" package-build-archive-dir))
|
||||
(switch-to-buffer-other-window
|
||||
(find-file-noselect
|
||||
(expand-file-name "archive-contents" package-build-archive-dir) t))
|
||||
(revert-buffer t t))
|
||||
(when (yes-or-no-p "Install new package? ")
|
||||
(package-install-file (pb/find-package-file pkg-name)))))
|
||||
|
|
Loading…
Reference in a new issue