emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 8635e01: Don't signal error from url debug function


From: Dmitry Gutov
Subject: [Emacs-diffs] master 8635e01: Don't signal error from url debug functions
Date: Fri, 12 Apr 2019 20:37:08 -0400 (EDT)

branch: master
commit 8635e011edd1c50678074a49cbbf857b35823e9d
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Don't signal error from url debug functions
    
    * lisp/url/url-http.el (url-http-debug): Don't signal error.
    
    * lisp/url/url-util.el (url-debug): Same (bug#34763).
---
 lisp/url/url-http.el | 9 ---------
 lisp/url/url-util.el | 2 --
 2 files changed, 11 deletions(-)

diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index cf19520..662b666 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -150,15 +150,6 @@ request.")
 ;; These routines will allow us to implement persistent HTTP
 ;; connections.
 (defsubst url-http-debug (&rest args)
-  (if (eq quit-flag t)
-      (let ((proc (get-buffer-process (current-buffer))))
-       ;; The user hit C-g, honor it!  Some things can get in an
-       ;; incredibly tight loop (chunked encoding)
-       (if proc
-           (progn
-             (set-process-sentinel proc nil)
-             (set-process-filter proc nil)))
-       (error "Transfer interrupted!")))
   (apply 'url-debug 'http args))
 
 (defun url-http-mark-connection-as-busy (host port proc)
diff --git a/lisp/url/url-util.el b/lisp/url/url-util.el
index 72ff4f1..5b83506 100644
--- a/lisp/url/url-util.el
+++ b/lisp/url/url-util.el
@@ -61,8 +61,6 @@ If a list, it is a list of the types of messages to be 
logged."
 
 ;;;###autoload
 (defun url-debug (tag &rest args)
-  (if (eq quit-flag t)
-      (error "Interrupted!"))
   (if (or (eq url-debug t)
          (numberp url-debug)
          (and (listp url-debug) (memq tag url-debug)))



reply via email to

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