From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: more url-utils? Date: Mon, 16 May 2011 21:33:55 +0200 Message-ID: References: <8739kgqbui.fsf@gnu.org> <871uzy7b9o.fsf@lifelogs.com> <877h9q5ub7.fsf@lifelogs.com> <87y6264f29.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1305574465 14655 80.91.229.12 (16 May 2011 19:34:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 May 2011 19:34:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 16 21:34:22 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 1QM3Yb-0001iP-AL for ged-emacs-devel@m.gmane.org; Mon, 16 May 2011 21:34:21 +0200 Original-Received: from localhost ([::1]:49540 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QM3Ya-0000M4-KA for ged-emacs-devel@m.gmane.org; Mon, 16 May 2011 15:34:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QM3YX-0000Lt-Nm for emacs-devel@gnu.org; Mon, 16 May 2011 15:34:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QM3YW-0007w2-MH for emacs-devel@gnu.org; Mon, 16 May 2011 15:34:17 -0400 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:58819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QM3YW-0007vp-ED for emacs-devel@gnu.org; Mon, 16 May 2011 15:34:16 -0400 Original-Received: by eyd9 with SMTP id 9so1598102eyd.0 for ; Mon, 16 May 2011 12:34:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=KColcNFuk5vZc3K4hqfLUbti7ojj3c3vSWqTxGOpoLw=; b=fNc7ZS7Q1bhAp8kvfkg8/lBoe8nSlbY10faijYo16ui4FmOTLVLh/RMhjezJhmHicQ f5zUsX7FjrpI5WQqEWW/qjXfH7B7EA7Bfs0WBjibSngfgg/+LVTF1rXIOmH0NTWinbRz UVOGGnIJsi8JXfHaXa0s39ZIVNra2M5SImDDw= 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=VygTyy+KV/YBL1sImX0kPE6Vv+1J6JrdqkioKfHO1SRPFrhveguTcGBAbWc14OuNHe K6oJ4ZyiPn8kOrpsjk42yoS8PkKbV2wNZnDSoKe7QHDoqfLb0Vct/aXEfFtZ9O8Hnl0a c6JrWNz25l+AUTqCrYgDTO0WIG8cGu/7wJLM4= Original-Received: by 10.213.26.136 with SMTP id e8mr1846335ebc.9.1305574455167; Mon, 16 May 2011 12:34:15 -0700 (PDT) Original-Received: by 10.213.2.136 with HTTP; Mon, 16 May 2011 12:33:55 -0700 (PDT) In-Reply-To: <87y6264f29.fsf@lifelogs.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.169 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:139439 Archived-At: 2011/5/16 Ted Zlatanov : > On Mon, 16 May 2011 21:22:02 +0200 Lennart Borgman wrote: > > LB> 2011/5/16 Ted Zlatanov : >>> On Mon, 16 May 2011 16:03:19 -0300 Stefan Monnier wrote: >>> >>>>> After looking at many examples in Emacs, I can't find or think of any >>>>> need for the headers *as text* in the code I've seen. =C2=A0I would: >>> > SM> That sounds right. >>> >>> ...so can I go ahead with my proposal or would you rather be >>> conservative and keep the old behavior, making API users turn off >>> headers explicitly? > > LB> I would go for Julien's suggestion with a function > LB> `url-remove-headers' which also parsed the headers and returned a > LB> alist of the headers. > > I'm trying to avoid that approach: we just established the headers are > almost never necessary in the buffer. =C2=A0So we should not ask the API > users to do anything extra to remove them. It can be combined with your approach with an extra argument.