# HG changeset patch # User Richard M. Stallman # Date 1121404288 0 # Node ID ba29905c8f5227a0d6dca518391a29007a413398 # Parent 654fa84e4f98c75934bd0b447f8f3c017c7d7e2e (url-retrieve): The callback function can get an additional keyword arg pair. diff -r 654fa84e4f98 -r ba29905c8f52 lisp/url/url.el --- a/lisp/url/url.el Fri Jul 15 01:23:01 2005 +0000 +++ b/lisp/url/url.el Fri Jul 15 05:11:28 2005 +0000 @@ -123,9 +123,14 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (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."