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: Tue, 31 May 2011 20:38:38 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <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 1306869556 337 80.91.229.12 (31 May 2011 19:19:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 May 2011 19:19:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 31 21:19:12 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 1QRUTA-0008LQ-7N for ged-emacs-devel@m.gmane.org; Tue, 31 May 2011 21:19:12 +0200 Original-Received: from localhost ([::1]:37142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRUT8-0005J0-NY for ged-emacs-devel@m.gmane.org; Tue, 31 May 2011 15:19:10 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRTq9-0003VO-7H for emacs-devel@gnu.org; Tue, 31 May 2011 14:38:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRTq7-0003Cd-Pv for emacs-devel@gnu.org; Tue, 31 May 2011 14:38:53 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:56707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRTq7-0003CX-6j for emacs-devel@gnu.org; Tue, 31 May 2011 14:38:51 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QRTq4-0004CA-N1 for emacs-devel@gnu.org; Tue, 31 May 2011 20:38:48 +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 ; Tue, 31 May 2011 20:38:48 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 May 2011 20:38:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAADFBMVEUwIRhTQCOThG1rVi/b 1rLtAAACM0lEQVQokR3QT0gUURwH8O/mytLi6gqaHfTopZOLLp3Ct+h2kMBd7DEgDntOkqKcHljj 69S5Tp0Uggj9Dex6kcgUDVY8pugwZY1Lh6hW/LPhMKQ8XlPHz+/7+x1+X3yTJ9qTllZvf63jofot PHHDM+eUj93SeOiFtjvhBxyNsCZcabndpsohUHLMKlk6NToQg/LNB9y01KCWIQLXEikecLv2WEHk RX8bL/IJd3IVfVUebHYUip0H5GCbtwfbKl24vk8EhkJn0UjHZN0hAKeINSPhH/44Bi69jgZoc0+U RrJOCxEGa0daY5KIWKxNerYu4sY7WmFNpu/tLDYQBbR0xZ+wEqT/45WuydMZWsc/vbz4KINzqkAT VUKpJVHZgUNrSgg1XqZ9wuJMZaDYpfbLtE4gx5kuavOcaIVQJ3qzPGv/iRTBuUbHOrw4dyLMHtUr UzrU5cPoOaXrbsBrWh9HiYhaMTxPyEAQQiVdw3etqCANV/i8pBrK8vgu7hsBD5U+y7rcgq0f+YH2 g3aLZyAODr6q6FDqIAuxJbmxZ2eD0pkR1WtyY7pn2CqFw/ieN/L5J3IjnvKGEQwl4rfMOYbUEMNm vj+eq1Yz6VwO+PBF7DGXxXqsxF3s9BQLGI22bt9hOOpiLWwEiB+yy+jtaKRYK/CT4RMy8XvN1VYw htkFDDRlwJJAi/mCkG7qw0YSLE80gm4gtjS/9bn87P04dPa02S7PJydXe2+ixGvLa/T86dTY1Y2/ RZU1RyHJ7noAAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: Tape's _Revelationes_: "Companions" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:Zm7lpFXdPeg2ApH3nZAwmSrctAQ= 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:139993 Archived-At: Stefan Monnier writes: > url-fetch could be defined to replace the current content of the buffer, > if that's deemed necessary (i.e. mostly if it needs to use > set-buffer-multibyte, which should ideally only ever be used on empty > buffers). Right... so it wouldn't be like `insert-file-contents', where you'd get more stuff into a buffer already containing stuff. The normal synchronous calling pattern would be (with-temp-buffer (let ((info (url-fetch "http://google.com"))) ... do stuff)) while the async case would be (url-fetch "http://google.com" (lambda (info) ... do stuff)) Yeah, that looks nice to me. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/