From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.help Subject: Re: Asynchronously downloading a file Date: Fri, 2 Jul 2010 12:11:39 +0200 Message-ID: References: <87sk42jlrk.fsf@rimspace.net> <87k4pejjx5.fsf@rimspace.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1278065580 7696 80.91.229.12 (2 Jul 2010 10:13:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Jul 2010 10:13:00 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Daniel Pittman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 02 12:12:59 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OUdEu-0006aZ-9O for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Jul 2010 12:12:56 +0200 Original-Received: from localhost ([127.0.0.1]:39340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUdEt-0006J3-F5 for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Jul 2010 06:12:55 -0400 Original-Received: from [140.186.70.92] (port=56908 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUdEF-0006Iy-KQ for help-gnu-emacs@gnu.org; Fri, 02 Jul 2010 06:12:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUdEE-0006wp-NH for help-gnu-emacs@gnu.org; Fri, 02 Jul 2010 06:12:15 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:35679) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUdEE-0006we-Hf for help-gnu-emacs@gnu.org; Fri, 02 Jul 2010 06:12:14 -0400 Original-Received: by fxm17 with SMTP id 17so2492511fxm.0 for ; Fri, 02 Jul 2010 03:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=kPdOTbk6H4MRnhKUwncVZyMrObbSgmkmAeaGOhi6Y8w=; b=SpNi7Mfm04waOHrVb97Kiy00HI2jTttDfsiB7Q2w/c7mcmoKmtLeO6YYvqtRR6pKfa JHz0FIYF72Qj9gxEZAIIK2MCbIxQdXfgrmifSEkxS2izUf8VIGlpR9YV/z/p476zaCbk S98eaFwf6MCLM8yXWXBPCCzQzRZQJ/w7KnwSM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=sNXUx/H3Jw0kmUD2Uc5pSr6GFy0yOODMrVYuNCZI0szkyGDRp1b3NpJbOhxZx9xbvg qAKhsy85GVMiIBVLPhIvcDl9Jyb7kvnx7dy8oe+XXLh8MWvwo5+xhzjNN9zeUhWjNRch OKyKIytQalJkxWP7Z0CMp3d2oXJ1AwEWIDCIw= Original-Received: by 10.239.143.129 with SMTP id k1mr36440hba.167.1278065529359; Fri, 02 Jul 2010 03:12:09 -0700 (PDT) Original-Received: by 10.239.135.207 with HTTP; Fri, 2 Jul 2010 03:11:39 -0700 (PDT) In-Reply-To: <87k4pejjx5.fsf@rimspace.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74051 Archived-At: 2010/7/2 Daniel Pittman : > Deniz Dogan writes: >> 2010/7/2 Daniel Pittman : >>> Qiang Guo writes: >>> >>>> Emacs adheres to single thread fervently, so it may be impossible to d= o this >>>> within emacs. >>> >>> [snip] >>> >>> The second way is to use an external process to do the same; you can ev= en >>> invoke 'emacs --batch --eval' if you really want to. :) >>> >>> =A0 =A0 =A0 =A0Daniel >>> >>> The second way is kind of wasteful given that `open-network-stream' is >>> actually entirely asynchronous and all. >> >> I'm looking for something like that, but with some layer taking care of = the >> HTTP stuff for me. > > Oh. =A0You mean `url-retrieve'. > That looks very interesting. Thank you. --=20 Deniz Dogan