From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: more url-utils? Date: Mon, 16 May 2011 09:19:18 -0600 Message-ID: References: <8739khju46.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1305559172 16277 80.91.229.12 (16 May 2011 15:19:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 May 2011 15:19:32 +0000 (UTC) Cc: Ted Zlatanov , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 16 17:19:28 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 1QLzZv-0002IB-Is for ged-emacs-devel@m.gmane.org; Mon, 16 May 2011 17:19:27 +0200 Original-Received: from localhost ([::1]:35696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLzZv-0004fK-1u for ged-emacs-devel@m.gmane.org; Mon, 16 May 2011 11:19:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLzZs-0004fE-GO for emacs-devel@gnu.org; Mon, 16 May 2011 11:19:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QLzZr-0007Nq-IZ for emacs-devel@gnu.org; Mon, 16 May 2011 11:19:24 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:12666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLzZr-0007NK-8O for emacs-devel@gnu.org; Mon, 16 May 2011 11:19:23 -0400 Original-Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4GFJLQs018107 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 16 May 2011 11:19:21 -0400 Original-Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4GFJLbc031996; Mon, 16 May 2011 11:19:21 -0400 Original-Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p4GFJKDe029335; Mon, 16 May 2011 11:19:20 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id E04473781A2; Mon, 16 May 2011 09:19:19 -0600 (MDT) X-Attribution: Tom In-Reply-To: (Stefan Monnier's message of "Mon, 16 May 2011 10:15:39 -0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 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:139427 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: Stefan> While Emacs uses them a lot, dynamically-scoped variables used as Stefan> implicit extra parameters are bad. In many cases, it's difficult to Stefan> avoid using them, but in this case, calling a function after the Stefan> url-retrieve call works just as well, so there's no excuse. IIRC, in package.el I had to special-case some URL types, because headers are inconsistently used. E.g., I think the 'ftp' method won't leave headers in the buffer. It would be nice if this bit were handled by the url package rather than all the callers. Tom