aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-07-15 05:11:28 +0000
committerRichard M. Stallman2005-07-15 05:11:28 +0000
commit497803edbef7a0e4b7b875165346fcf77e0ac298 (patch)
tree0016f85be90375eae59fcb3b9615e69dc372b4f4
parentfea34e9fc2b1c75868182a38f3be4ff76331cb28 (diff)
downloademacs-497803edbef7a0e4b7b875165346fcf77e0ac298.tar.gz
emacs-497803edbef7a0e4b7b875165346fcf77e0ac298.zip
(url-retrieve): The callback function can get an additional keyword arg pair.
-rw-r--r--lisp/url/url.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/url/url.el b/lisp/url/url.el
index 695aceb871e..21859ad9566 100644
--- a/lisp/url/url.el
+++ b/lisp/url/url.el
@@ -123,9 +123,14 @@ Emacs."
123;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 123;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
124(defun url-retrieve (url callback &optional cbargs) 124(defun url-retrieve (url callback &optional cbargs)
125 "Retrieve URL asynchronously and call CALLBACK with CBARGS when finished. 125 "Retrieve URL asynchronously and call CALLBACK with CBARGS when finished.
126The callback is called when the object has been completely retrieved, with 126URL is either a string or a parsed URL.
127
128CALLBACK is called when the object has been completely retrieved, with
127the current buffer containing the object, and any MIME headers associated 129the current buffer containing the object, and any MIME headers associated
128with it. URL is either a string or a parsed URL. 130with it. Normally it gets the arguments in the list CBARGS.
131However, if what we find is a redirect, CALLBACK is given
132two additional args, `:redirect' and the redirected URL,
133followed by CBARGS.
129 134
130Return the buffer URL will load into, or nil if the process has 135Return the buffer URL will load into, or nil if the process has
131already completed." 136already completed."