From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: more url-utils? Date: Mon, 30 May 2011 19:31:50 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <87fwogaxzb.fsf@stupidchicken.com> <87mxilezg8.fsf@lifelogs.com> <87boz0eov8.fsf@lifelogs.com> <87mxikrulm.fsf@lifelogs.com> <871uzw5asv.fsf@lifelogs.com> <87boyzcv0o.fsf@lifelogs.com> <87k4dnassv.fsf@lifelogs.com> <878vu23lpe.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1306776734 3250 80.91.229.12 (30 May 2011 17:32:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 May 2011 17:32:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 30 19:32:10 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QR6K1-0001zL-5s for ged-emacs-devel@m.gmane.org; Mon, 30 May 2011 19:32:09 +0200 Original-Received: from localhost ([::1]:41716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QR6K0-0003XV-JU for ged-emacs-devel@m.gmane.org; Mon, 30 May 2011 13:32:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QR6Jx-0003WM-GL for emacs-devel@gnu.org; Mon, 30 May 2011 13:32:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QR6Jw-0004eU-Ld for emacs-devel@gnu.org; Mon, 30 May 2011 13:32:05 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:57760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QR6Jw-0004eQ-BO for emacs-devel@gnu.org; Mon, 30 May 2011 13:32:04 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QR6Ju-0001xS-8K for emacs-devel@gnu.org; Mon, 30 May 2011 19:32:02 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 May 2011 19:32:02 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 May 2011 19:32:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 35 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUIBANBLiAgFhC1o4sN CQhaRDL3FEQhAAACcklEQVQ4jV2TzXbiMAyFBcfsUcD7WHX2Q328dzLufmyj93+VuUpoZ1odyIH7 Wb9WKKWHakufltnjL4vQD2BMddqBAkzfyQG8Mo8fIL7A7X9dR+4HaP8cxh758Mie2bQ3e8BVE1IY eCCFh/bboouB3ES2A1gseCD22IuUaAChOI/JokiV1Fg51o0yZPby1oaFgHLfRCxHMzCJ1x3U0JbJ AdUXCGpgqlW2Usvmp0rvh8fQMfK91BrmQgsKphxMh4c+OTpoLbrA8EAVALc8rK3Fhr1WYYkolzH9 JeUx0BoG8X5pqhmds4HbyOjx4Wmk9w/0ODqp6aI31YSiCw5fMC0/CIOE5WaVxHzdtJ0Vd5iQ7V0k 5H4xx8e08uQgpxeQy5/rBe11PjE7j0m+QKTam4x7E8c83zJioYwHbTFK6pKebXZBypvmxoTi+xkX M/qS771Qd9XZZpFdc+T5lPqtb5GKuqkE3zCrNeU/Qqf0zB+txDk9uTiUQ7/oQ69ELnW0EqeuWgud p0IzXdKTpGhTr1PoS6qVzjES0QXZdbZ10h5A11rOuFqiU26rXnF8B/hGWmPdAY5dP3Txra+35z0I bdXA2YLcT7o0Dqu/BiwbmYeri0XnFmsJgecQZwDAcyG8RM+KKisxx4DiyQG4QkhZvc5lw2LwaTYN ofBZmbvXuwhjM7ZYIFcydsLUUC6OA8To9qh7XUji0TqGOnGcAXC8FLcDNqdmFw8PGNXqyLHaS3Is a9xspw0ABYUCC7YRm7w8YMFyymH1MLKAtCJCNTWatsUvj40/D37ZAdbW7Heh4r4Ajha3Nmxb+e6B d7egx4qtsTG4T/wXA3rVQ5QHL2YAAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: Jenny Hval's _Viscera_: "Golden Locks" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:+AIXdyF0d6MA4HJwOR89eOgvZao= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139899 Archived-At: Stefan Monnier writes: > How 'bout: the result of url-fetch (either returned in passed to the > callback), is list of the form (STATUS . INFO): if STATUS is nil, it > means the call was a success and INFO is an alist of auxiliary info such > as headers and stuff, and if STATUS is non-nil, it should be an error > symbol and INFO is some failure information such that one can do > (signal (car result) (cdr result)). Say you have a function that's supposed to do something with a web page, `parse-page'. The it would be very nice, I think, if the signature of that function could be the same no matter whether we're fetching the page synchronously or not. That is, it would be nice if it were possible to say either (apply #'parse-page (url-fetch "http://google.com")) to do it synchronously or say (url-fetch "http://google.com" 'parse-page) to do it asynchronously. This would imply that the signature used for callbacks should be something like (defun parse-page (buffer &optional status headers) ...) Does that make sense? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/