]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix problem with temp buffer killing in package-install-file
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 12 Nov 2021 03:44:09 +0000 (04:44 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 12 Nov 2021 03:44:09 +0000 (04:44 +0100)
* lisp/emacs-lisp/package.el (package-install-file): Allow killing
the temporary buffer without querying (bug#51769).

lisp/emacs-lisp/package.el

index 5445fa970f8fc146c9e821e2cb7d2327e76548c2..2c37e19980d5f487708490e2c2f7dd715be2aabb 100644 (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)))