[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.


> 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'.


reply via email to

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