mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08: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
1 changed files with 4 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue