From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dimitri Fontaine Newsgroups: gmane.emacs.devel Subject: Re: more url-utils? Date: Sat, 14 May 2011 22:42:16 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1305405741 25382 80.91.229.12 (14 May 2011 20:42:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 May 2011 20:42:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 14 22:42:17 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 1QLLfE-0001PK-HF for ged-emacs-devel@m.gmane.org; Sat, 14 May 2011 22:42:16 +0200 Original-Received: from localhost ([::1]:40973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLLfD-0007wW-Nv for ged-emacs-devel@m.gmane.org; Sat, 14 May 2011 16:42:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLLf9-0007wR-7G for emacs-devel@gnu.org; Sat, 14 May 2011 16:42:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QLLf4-0003Sq-IF for emacs-devel@gnu.org; Sat, 14 May 2011 16:42:11 -0400 Original-Received: from prometheus.naquadah.org ([212.85.154.174]:57871 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLLf4-0003SR-CB for emacs-devel@gnu.org; Sat, 14 May 2011 16:42:06 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mx1.naquadah.org (Postfix) with ESMTP id E89065C0E4 for ; Sat, 14 May 2011 22:42:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at prometheus.naquadah.org Original-Received: from mx1.naquadah.org ([127.0.0.1]) by localhost (prometheus.naquadah.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ND8cNn2WRGnV for ; Sat, 14 May 2011 22:41:56 +0200 (CEST) Original-Received: from DimIMac.local (89-158-240-165.rev.dartybox.com [89.158.240.165]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id A70365C0D3 for ; Sat, 14 May 2011 22:41:56 +0200 (CEST) Original-Received: by DimIMac.local (Postfix, from userid 501) id F09DB1FD2A93; Sat, 14 May 2011 22:42:16 +0200 (CEST) User-Mail-Address: dim@tapoueh.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sat, 14 May 2011 13:21:06 +0200") User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 212.85.154.174 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:139405 Archived-At: Lars Magne Ingebrigtsen writes: > My guess is that more than 90% of the users of `url-retrieve' don't care > about the headers, so having it do the stripping would be convenient. Right. As a user of it, I concur. Now maybe a new function url-delete-headers would be good enough. It would do the delete in current-buffer, and avoid code that currently looks like that: ;; prune HTTP headers before save (goto-char (point-min)) (re-search-forward "^$" nil 'move) (forward-char) (delete-region (point-min) (point)) Regards, -- dim