[Top][All Lists]
[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: |
Tue, 17 May 2011 10:34:12 -0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>> There are 3 parts.
>> - removal of header text.
>> - backward compatibility.
>> - providing header info in a non-textual format.
> Adding a new optional parameter `no-headers' (or something) to
> `url-retrieve' (and -synchronous) could do the trick, but the caller
> (who wants no headers) have to do some pretty deep inspection to find
> out whether this version of `url-retrieve' has that parameter or not.
Agreed.
> So how about a new function, with a signature something like this:
> (defun url-fetch (url &keywords callback cbargs silent))
Sounds about right.
> The `callback' is optional, and if not provided, makes `url-fetch' be
> synchronous.
Yes, I used the same convention in mpc.el.
> (Too bad Emacs doesn't really have a culture for closures, because
> then we could get rid of cbargs, too. Being able to say stuff like
This change to URL would be for Emacs-24 which does support closures
natively (and I encourage people to use this facility), so we could
definitely drop the `cbargs'.
Stefan
- Re: more url-utils?, (continued)
- Re: more url-utils?, Stefan Monnier, 2011/05/16
- Re: more url-utils?, joakim, 2011/05/16
- Re: more url-utils?, Ted Zlatanov, 2011/05/16
- Re: more url-utils?, Lennart Borgman, 2011/05/16
- Re: more url-utils?, joakim, 2011/05/16
- Re: more url-utils?, Lars Magne Ingebrigtsen, 2011/05/17
- Re: more url-utils?,
Stefan Monnier <=
Re: more url-utils?, Ted Zlatanov, 2011/05/14
- Re: more url-utils?, Stefan Monnier, 2011/05/16
- Re: more url-utils?, Tom Tromey, 2011/05/16
- Re: more url-utils?, Stefan Monnier, 2011/05/16
- Re: more url-utils?, joakim, 2011/05/16
- Re: more url-utils?, Lennart Borgman, 2011/05/16
- Re: more url-utils?, Stefan Monnier, 2011/05/16
- Re: more url-utils?, Julien Danjou, 2011/05/16
Re: more url-utils?, Chong Yidong, 2011/05/16