Commit d506bc1d authored by Leo Liu's avatar Leo Liu
Browse files

* url/url.el (url-retrieve-synchronously): Add optional arg SILENT and

INHIBIT-COOKIES.
parent f5df4ceb
2013-12-20 Leo Liu <sdl.web@gmail.com>
* url.el (url-retrieve-synchronously): Add optional arg SILENT and
INHIBIT-COOKIES.
2013-09-29 Leo Liu <sdl.web@gmail.com> 2013-09-29 Leo Liu <sdl.web@gmail.com>
* url-util.el (url-pretty-length): Make obsolete and all uses * url-util.el (url-pretty-length): Make obsolete and all uses
......
...@@ -220,7 +220,7 @@ URL-encoded before it's used." ...@@ -220,7 +220,7 @@ URL-encoded before it's used."
buffer)) buffer))
;;;###autoload ;;;###autoload
(defun url-retrieve-synchronously (url) (defun url-retrieve-synchronously (url &optional silent inhibit-cookies)
"Retrieve URL synchronously. "Retrieve URL synchronously.
Return the buffer containing the data, or nil if there are no data Return the buffer containing the data, or nil if there are no data
associated with it (the case for dired, info, or mailto URLs that need associated with it (the case for dired, info, or mailto URLs that need
...@@ -233,7 +233,8 @@ no further processing). URL is either a string or a parsed URL." ...@@ -233,7 +233,8 @@ no further processing). URL is either a string or a parsed URL."
(url-retrieve url (lambda (&rest ignored) (url-retrieve url (lambda (&rest ignored)
(url-debug 'retrieval "Synchronous fetching done (%S)" (current-buffer)) (url-debug 'retrieval "Synchronous fetching done (%S)" (current-buffer))
(setq retrieval-done t (setq retrieval-done t
asynch-buffer (current-buffer))))) asynch-buffer (current-buffer)))
nil silent inhibit-cookies))
(if (null asynch-buffer) (if (null asynch-buffer)
;; We do not need to do anything, it was a mailto or something ;; We do not need to do anything, it was a mailto or something
;; similar that takes processing completely outside of the URL ;; similar that takes processing completely outside of the URL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment