[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?
- Re: with-url, (continued)
- Re: with-url, Eli Zaretskii, 2016/12/29
- Re: with-url, Lars Ingebrigtsen, 2016/12/29
- Re: with-url, Lars Ingebrigtsen, 2016/12/29
- Re: with-url, Eli Zaretskii, 2016/12/29
- Re: with-url, Lars Ingebrigtsen, 2016/12/29
- Re: with-url, Eli Zaretskii, 2016/12/29
- Re: with-url, Lars Ingebrigtsen, 2016/12/30
- Re: with-url, Lars Ingebrigtsen, 2016/12/30
- Re: with-url, Eli Zaretskii, 2016/12/30
- Re: with-url,
Eli Zaretskii <=
- Re: with-url, Lars Ingebrigtsen, 2016/12/29
Re: with-url, Dmitry Gutov, 2016/12/31