emacs-devel
[Top][All Lists]
Advanced

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

Re: more url-utils?


From: Lars Magne Ingebrigtsen
Subject: Re: more url-utils?
Date: Tue, 31 May 2011 20:38:38 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Stefan Monnier <address@hidden> 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/




reply via email to

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