emacs-devel
[Top][All Lists]
Advanced

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

Re: with-url


From: Eli Zaretskii
Subject: Re: with-url
Date: Thu, 29 Dec 2016 18:53:08 +0200

> From: Lars Ingebrigtsen <address@hidden>
> Cc: address@hidden
> Date: Thu, 29 Dec 2016 17:35:07 +0100
> 
> Eli Zaretskii <address@hidden> writes:
> 
> >>   (with-url (headers "http://fsf.org/";)
> >>     (message "The size of the FSF front page is %s" (buffer-size)))
> >
> > I'm probably missing something, but why do you need a macro?  The
> > description seems to say that BODY is executed with point in a buffer
> > with the response, so why not just set up that buffer and return with
> > it as the current buffer?
> 
> The body is executed synchronously or as a callback later, depending on
> whether you put a :wait t in the parameter list or not.  I don't see how
> that's possibly without using a macro.

Well, url-retrieve uses a callback.  Won't that fit the bill here?



reply via email to

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