Fix problem with temp buffer killing in package-install-file

* lisp/emacs-lisp/package.el (package-install-file): Allow killing
the temporary buffer without querying (bug#51769).
This commit is contained in:
Lars Ingebrigtsen 2021-11-12 04:44:09 +01:00
parent 144ad77fda
commit a6905e90cc

View file

@ -2239,6 +2239,7 @@ directory."
(dired-mode))
(insert-file-contents-literally file)
(set-visited-file-name file)
(set-buffer-modified-p nil)
(when (string-match "\\.tar\\'" file) (tar-mode)))
(package-install-from-buffer)))