emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 2e6d7d1: * lisp/emacs-lisp/package.el (package--w


From: Artur Malabarba
Subject: [Emacs-diffs] emacs-25 2e6d7d1: * lisp/emacs-lisp/package.el (package--with-response-buffer):
Date: Wed, 18 Nov 2015 10:28:45 +0000

branch: emacs-25
commit 2e6d7d1e3408168545d5afd33ae8dd5a2881a22c
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>

    * 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.
---
 lisp/emacs-lisp/package.el |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 2aea9d1..d747bc2 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]