mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 20:41:23 +00:00
Suppress queries when installing package from file
* lisp/emacs-lisp/package.el (package-install-file): Assume it is OK to set the visited file name, since we are not actually touching anything on disk, and prevent the modified flag from preventing us to kill the temporary buffer. The flag is set by tar-mode.
This commit is contained in:
parent
27434c0f9d
commit
0051e2b707
1 changed files with 3 additions and 2 deletions
|
|
@ -2327,11 +2327,12 @@ directory."
|
|||
(setq default-directory file)
|
||||
(dired-mode))
|
||||
(insert-file-contents-literally file)
|
||||
(set-visited-file-name file)
|
||||
(set-visited-file-name file t)
|
||||
(set-buffer-modified-p nil)
|
||||
(when (string-match "\\.tar\\'" file) (tar-mode)))
|
||||
(unwind-protect
|
||||
(package-install-from-buffer)
|
||||
(with-silent-modifications
|
||||
(package-install-from-buffer))
|
||||
(fundamental-mode)))) ; free auxiliary data
|
||||
|
||||
;;;###autoload
|
||||
|
|
|
|||
Loading…
Reference in a new issue