emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/url/url-proxy.el,v


From: Magnus Henoch
Subject: [Emacs-diffs] Changes to emacs/lisp/url/url-proxy.el,v
Date: Fri, 08 Dec 2006 00:38:15 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Magnus Henoch <legoscia>        06/12/08 00:38:15

Index: url-proxy.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/url/url-proxy.el,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- url-proxy.el        5 Feb 2006 23:15:07 -0000       1.7
+++ url-proxy.el        8 Dec 2006 00:38:15 -0000       1.8
@@ -65,12 +65,18 @@
       (url-warn 'url (format "Unknown proxy directive: %s" proxy) 'critical)
       nil))))
 
+(defvar url-proxy-object nil
+  "The URL to access through a proxy.
+This variable is bound by `url-proxy'.  If this is non-nil, the
+scheme-specific loader should use its argument as the proxy, and
+the value of this variable as the object to retrieve.")
+
 (defun url-proxy (url callback &optional cbargs)
   ;; Retrieve URL from a proxy.
   ;; Expects `url-using-proxy' to be bound to the specific proxy to use."
   (setq url-using-proxy (url-generic-parse-url url-using-proxy))
-  (let ((proxy-object (copy-sequence url)))
-    (url-set-target proxy-object nil)
+  (let ((url-proxy-object (copy-sequence url)))
+    (url-set-target url-proxy-object nil)
     (url-http url-using-proxy callback cbargs)))
 
 (provide 'url-proxy)




reply via email to

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