From a6905e90cc3358a21726646c4ee9154e80fc96d6 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 12 Nov 2021 04:44:09 +0100 Subject: [PATCH] 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). --- lisp/emacs-lisp/package.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 5445fa970f8..2c37e19980d 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -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))) -- 2.39.2