From: Lars Ingebrigtsen Date: Fri, 12 Nov 2021 03:44:09 +0000 (+0100) Subject: Fix problem with temp buffer killing in package-install-file X-Git-Tag: emacs-28.0.90~83 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a6905e90cc3358a21726646c4ee9154e80fc96d6;p=emacs.git 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). --- 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)))