emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more url-utils?


From: Dimitri Fontaine
Subject: Re: more url-utils?
Date: Sat, 14 May 2011 22:42:16 +0200
User-agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (darwin)

Lars Magne Ingebrigtsen <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]