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:
Steve Purcell 2013-06-02 10:54:05 +01:00
parent 8c2ffb5064
commit d89cc499c5

View file

@ -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)))))