summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-11-12 04:44:09 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-11-12 04:44:09 +0100
commita6905e90cc3358a21726646c4ee9154e80fc96d6 (patch)
tree860bd024688c7be991a9e1d4e7cf7d8b21af4f3c
parent144ad77fdadd41888c9a715e25c2bc7c57753f74 (diff)
downloademacs-a6905e90cc3358a21726646c4ee9154e80fc96d6.tar.gz
emacs-a6905e90cc3358a21726646c4ee9154e80fc96d6.tar.bz2
emacs-a6905e90cc3358a21726646c4ee9154e80fc96d6.zip
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).
-rw-r--r--lisp/emacs-lisp/package.el1
1 files changed, 1 insertions, 0 deletions
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)))