diff options
| author | Artur Malabarba | 2015-12-08 12:49:20 +0000 |
|---|---|---|
| committer | Artur Malabarba | 2015-12-08 12:49:20 +0000 |
| commit | a1ad5311683dc84bf2cb023ea7d3043084452cc3 (patch) | |
| tree | e10f55d3d2464e56fe4be1e454fc73ea29fa5d39 | |
| parent | 93f429a324e8b9a37f2646548ef8062c6392e94f (diff) | |
| download | emacs-a1ad5311683dc84bf2cb023ea7d3043084452cc3.tar.gz emacs-a1ad5311683dc84bf2cb023ea7d3043084452cc3.zip | |
* lisp/emacs-lisp/package.el (package--with-response-buffer):
Search for the blank-line in the right buffer.
| -rw-r--r-- | lisp/emacs-lisp/package.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 6da3c1e4bc6..265b1cc5485 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -1160,9 +1160,10 @@ errors signaled by ERROR-FORM or by BODY). | |||
| 1160 | (unless-error ,body | 1160 | (unless-error ,body |
| 1161 | (when-let ((er (plist-get status :error))) | 1161 | (when-let ((er (plist-get status :error))) |
| 1162 | (error "Error retrieving: %s %S" url er)) | 1162 | (error "Error retrieving: %s %S" url er)) |
| 1163 | (goto-char (point-min)) | 1163 | (with-current-buffer b |
| 1164 | (unless (search-forward-regexp "^\r?\n\r?" nil 'noerror) | 1164 | (goto-char (point-min)) |
| 1165 | (error "Error retrieving: %s %S" url "incomprehensible buffer")) | 1165 | (unless (search-forward-regexp "^\r?\n\r?" nil 'noerror) |
| 1166 | (error "Error retrieving: %s %S" url "incomprehensible buffer"))) | ||
| 1166 | (url-insert-buffer-contents b url) | 1167 | (url-insert-buffer-contents b url) |
| 1167 | (kill-buffer b) | 1168 | (kill-buffer b) |
| 1168 | (goto-char (point-min))))))) | 1169 | (goto-char (point-min))))))) |