From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Pittman Newsgroups: gmane.emacs.help Subject: Re: Asynchronously downloading a file Date: Fri, 02 Jul 2010 19:46:14 +1000 Message-ID: <87k4pejjx5.fsf@rimspace.net> References: <87sk42jlrk.fsf@rimspace.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1278065051 5601 80.91.229.12 (2 Jul 2010 10:04:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Jul 2010 10:04:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 02 12:04:09 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 1OUd6O-0001H3-Mi for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Jul 2010 12:04:08 +0200 Original-Received: from localhost ([127.0.0.1]:35490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUd6N-00047K-TN for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Jul 2010 06:04:07 -0400 Original-Received: from [140.186.70.92] (port=49350 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUcuf-0003uP-Gy for help-gnu-emacs@gnu.org; Fri, 02 Jul 2010 05:52:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUcue-0003gN-1q for help-gnu-emacs@gnu.org; Fri, 02 Jul 2010 05:52:01 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:57078) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUcud-0003gB-Sk for help-gnu-emacs@gnu.org; Fri, 02 Jul 2010 05:52:00 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OUcua-0002Na-P0 for help-gnu-emacs@gnu.org; Fri, 02 Jul 2010 11:51:56 +0200 Original-Received: from ppp59-167-189-244.static.internode.on.net ([59.167.189.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Jul 2010 11:51:56 +0200 Original-Received: from daniel by ppp59-167-189-244.static.internode.on.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Jul 2010 11:51:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ppp59-167-189-244.static.internode.on.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:P4C20A/yddHxhL7cXhq6xkIgHEU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:74049 Archived-At: Deniz Dogan writes: > 2010/7/2 Daniel Pittman : >> Qiang Guo writes: >> >>> Emacs adheres to single thread fervently, so it may be impossible to do this >>> within emacs. >> >> [snip] >> >> The second way is to use an external process to do the same; you can even >> invoke 'emacs --batch --eval' if you really want to. :) >> >>        Daniel >> >> 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. You mean `url-retrieve'. Daniel -- ✣ Daniel Pittman ✉ daniel@rimspace.net ☎ +61 401 155 707 ♽ made with 100 percent post-consumer electrons