* 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:
parent
35d490fd32
commit
2e6d7d1e34
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue