emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more url-utils?


From: Stefan Monnier
Subject: Re: more url-utils?
Date: Wed, 18 May 2011 09:16:07 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>>> 3) Asynchronous usage with a callback (`url-headers-alist',
>>> `url-headers-as-string', and `url-retrieved-ok' are still available):

>>> (with-url-contents-buffer "http://host"; '((url-request-method "POST")) 
>>> callback-closure
>>> (message "this will run AFTER the retrieval and the callback-closure are 
>>> done"))

SM> In which sense is this asynchronous?
> Same as the current url.el code.

So you mean that, while the `body' is run after the retrieval is done,
the code after with-url-contents-buffer will be run earlier?

SM> What's the difference between the code run in call-back-closure from
SM> the code in `body'?
> Since I'm proposing a macro, the callback-closure is funcalled while the
> body is inlined.

I don't know what you mean by "funcalled vs inlined" (in my world,
"inlined" means it's implemented slightly differently, but the behavior
is identical).


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]