diff options
author | Richard M. Stallman <rms@gnu.org> | 2005-07-15 05:11:28 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2005-07-15 05:11:28 +0000 |
commit | 497803edbef7a0e4b7b875165346fcf77e0ac298 (patch) | |
tree | 0016f85be90375eae59fcb3b9615e69dc372b4f4 /lisp | |
parent | fea34e9fc2b1c75868182a38f3be4ff76331cb28 (diff) | |
download | emacs-497803edbef7a0e4b7b875165346fcf77e0ac298.tar.gz |
(url-retrieve): The callback function can get an additional keyword arg pair.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/url/url.el | 9 |
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." ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defun url-retrieve (url callback &optional cbargs) "Retrieve URL asynchronously and call CALLBACK with CBARGS when finished. -The callback is called when the object has been completely retrieved, with +URL is either a string or a parsed URL. + +CALLBACK is called when the object has been completely retrieved, with the current buffer containing the object, and any MIME headers associated -with it. URL is either a string or a parsed URL. +with it. Normally it gets the arguments in the list CBARGS. +However, if what we find is a redirect, CALLBACK is given +two additional args, `:redirect' and the redirected URL, +followed by CBARGS. Return the buffer URL will load into, or nil if the process has already completed." |