123 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
124 |
(defun url-retrieve (url callback &optional cbargs) |
(defun url-retrieve (url callback &optional cbargs) |
125 |
"Retrieve URL asynchronously and call CALLBACK with CBARGS when finished. |
"Retrieve URL asynchronously and call CALLBACK with CBARGS when finished. |
126 |
The callback is called when the object has been completely retrieved, with |
URL is either a string or a parsed URL. |
127 |
|
|
128 |
|
CALLBACK is called when the object has been completely retrieved, with |
129 |
the current buffer containing the object, and any MIME headers associated |
the current buffer containing the object, and any MIME headers associated |
130 |
with it. URL is either a string or a parsed URL. |
with it. Normally it gets the arguments in the list CBARGS. |
131 |
|
However, if what we find is a redirect, CALLBACK is given |
132 |
|
two additional args, `:redirect' and the redirected URL, |
133 |
|
followed by CBARGS. |
134 |
|
|
135 |
Return the buffer URL will load into, or nil if the process has |
Return the buffer URL will load into, or nil if the process has |
136 |
already completed." |
already completed." |