1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-26 07:33:47 +00:00

* lisp/emacs-lisp/package.el (package--with-response-buffer):

Ensure we're at the start of the buffer before searching for
the end of headers.
This commit is contained in:
Artur Malabarba 2015-11-18 10:28:02 +00:00
parent 35d490fd32
commit 2e6d7d1e34

View File

@ -1165,6 +1165,7 @@ BODY (does not apply to errors signaled by ERROR-FORM).
(unwind-protect (wrap-errors
(when-let ((er (plist-get status :error)))
(error "Error retrieving: %s %S" url er))
(goto-char (point-min))
(unless (search-forward-regexp "^\r?\n\r?" nil 'noerror)
(error "Error retrieving: %s %S" url "incomprehensible buffer"))
(with-temp-buffer