mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-28 07:45:00 +00:00
* lisp/emacs-lisp/package.el (package--with-response-buffer):
Search for the blank-line in the right buffer.
This commit is contained in:
parent
93f429a324
commit
a1ad531168
@ -1160,9 +1160,10 @@ errors signaled by ERROR-FORM or by BODY).
|
||||
(unless-error ,body
|
||||
(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-current-buffer b
|
||||
(goto-char (point-min))
|
||||
(unless (search-forward-regexp "^\r?\n\r?" nil 'noerror)
|
||||
(error "Error retrieving: %s %S" url "incomprehensible buffer")))
|
||||
(url-insert-buffer-contents b url)
|
||||
(kill-buffer b)
|
||||
(goto-char (point-min)))))))
|
||||
|
Loading…
Reference in New Issue
Block a user