aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-02-10 09:22:09 -0800
committerGlenn Morris2012-02-10 09:22:09 -0800
commita48ec60ca1e8df977b155e43e13199a7cb3e4685 (patch)
tree8f0a710505faaf8c7341ac2582da3f5093e21961
parent578ad769a6626dca5735ed769b19f0d12933e260 (diff)
downloademacs-a48ec60ca1e8df977b155e43e13199a7cb3e4685.tar.gz
emacs-a48ec60ca1e8df977b155e43e13199a7cb3e4685.zip
Fix previous URL doc change
* lisp/url/url-queue.el (url-queue-retrieve): Fic previous doc fix. * doc/misc/url.texi (Retrieving URLs): Update url-retrieve arguments. Mention url-queue-retrieve. * etc/NEWS: Related edit.
-rw-r--r--doc/misc/url.texi8
-rw-r--r--etc/NEWS5
-rw-r--r--lisp/url/ChangeLog4
-rw-r--r--lisp/url/url-queue.el6
4 files changed, 14 insertions, 9 deletions
diff --git a/doc/misc/url.texi b/doc/misc/url.texi
index e60aebb665b..771430251b6 100644
--- a/doc/misc/url.texi
+++ b/doc/misc/url.texi
@@ -216,10 +216,10 @@ non-@code{nil}, do not store or send cookies.
216@vindex url-queue-parallel-processes 216@vindex url-queue-parallel-processes
217@vindex url-queue-timeout 217@vindex url-queue-timeout
218@defun url-queue-retrieve url callback &optional cbargs silent no-cookies 218@defun url-queue-retrieve url callback &optional cbargs silent no-cookies
219This acts like the @code{url-retrieve} function, but downloads in 219This acts like the @code{url-retrieve} function, but with limits on
220parallel. The option @code{url-queue-parallel-processes} controls the 220the degree of parallelism. The option @code{url-queue-parallel-processes}
221number of concurrent processes, and the option @code{url-queue-timeout} 221controls the number of concurrent processes, and the option
222sets a timeout in seconds. 222@code{url-queue-timeout} sets a timeout in seconds.
223@end defun 223@end defun
224 224
225@node Supported URL Types 225@node Supported URL Types
diff --git a/etc/NEWS b/etc/NEWS
index 3306c5cdfc8..9929f326e44 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -858,8 +858,9 @@ default value to "".
858remote machines that support SELinux. 858remote machines that support SELinux.
859 859
860+++ 860+++
861** New function, url-queue-retrieve, fetches URLs asynchronously like 861** New function, `url-queue-retrieve', which behaves like url-retrieve,
862url-retrieve does, but in parallel. 862but with limits (`url-queue-parallel-processes', `url-queue-timeout') on
863the degree of parallelism.
863 864
864** VC and related modes 865** VC and related modes
865 866
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index 8f0cbcb2594..14aaa4bf113 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,7 @@
12012-02-10 Glenn Morris <rgm@gnu.org>
2
3 * url-queue.el (url-queue-retrieve): Fic previous doc fix.
4
12012-02-10 Andreas Schwab <schwab@linux-m68k.org> 52012-02-10 Andreas Schwab <schwab@linux-m68k.org>
2 6
3 * url-http.el (url-http-clean-headers): Return the number of 7 * url-http.el (url-http-clean-headers): Return the number of
diff --git a/lisp/url/url-queue.el b/lisp/url/url-queue.el
index 62e5e2f84d4..9dfee485918 100644
--- a/lisp/url/url-queue.el
+++ b/lisp/url/url-queue.el
@@ -57,9 +57,9 @@
57(defun url-queue-retrieve (url callback &optional cbargs silent inhibit-cookies) 57(defun url-queue-retrieve (url callback &optional cbargs silent inhibit-cookies)
58 "Retrieve URL asynchronously and call CALLBACK with CBARGS when finished. 58 "Retrieve URL asynchronously and call CALLBACK with CBARGS when finished.
59This is like `url-retrieve' (which see for details of the arguments), 59This is like `url-retrieve' (which see for details of the arguments),
60but downloads in parallel. The variable `url-queue-parallel-processes' 60but with limits on the degree of parallelism. The variable
61sets the number of concurrent processes. The variable `url-queue-timeout' 61`url-queue-parallel-processes' sets the number of concurrent processes.
62sets a timeout." 62The variable `url-queue-timeout' sets a timeout."
63 (setq url-queue 63 (setq url-queue
64 (append url-queue 64 (append url-queue
65 (list (make-url-queue :url url 65 (list (make-url-queue :url url