mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-19 02:10:10 +00:00
* lisp/emacs-lisp/package.el (package-install-from-archive): Fix last change
Don't place the unibyte content of of the downloaded file into a multibyte buffer.
This commit is contained in:
parent
43db6dd6b4
commit
35f305652c
1 changed files with 6 additions and 3 deletions
|
@ -1913,9 +1913,12 @@ if all the in-between dependencies are also in PACKAGE-LIST."
|
|||
;; This function will be called after signature checking.
|
||||
(lambda (&optional good-sigs)
|
||||
;; Signature checked, unpack now.
|
||||
(with-temp-buffer (insert content)
|
||||
(let ((save-silently t))
|
||||
(package-unpack pkg-desc)))
|
||||
(with-temp-buffer ;FIXME: Just use the previous current-buffer.
|
||||
(set-buffer-multibyte nil)
|
||||
(cl-assert (not (multibyte-string-p content)))
|
||||
(insert content)
|
||||
(let ((save-silently t))
|
||||
(package-unpack pkg-desc)))
|
||||
;; Here the package has been installed successfully, mark it as
|
||||
;; signed if appropriate.
|
||||
(when good-sigs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue