GNU bug report logs -
#4680
23.1.50; minor url-http.el fix
Previous Next
Reported by: Chris Newton <redshodan <at> gmail.com>
Date: Thu, 8 Oct 2009 23:00:04 UTC
Severity: minor
Tags: fixed
Fixed in version 24.1
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 4680 <at> emacsbugs.donarmstrong.com (full text, mbox):
Whoops. I don't know what I was thinking about url-display-percentage.
Ignore that. :)
I came across this because of twit.el. It can do http operations every
so often in the background. It binds (with let, so local bind, what
ever the terminology is) url-show-status to nil when doing an async
get. Since its async, it sets up a process buffer to do the get. But
in the context of the process buffer, the local binding of
url-show-status is long gone and the primary value takes over. By
default its t, which would make sense for the vast majority of cases.
So url-http displays progress on a background process when the user of
url-http does not what that to happen.
On Thu, Oct 15, 2009 at 1:03 AM, Glenn Morris <rgm <at> gnu.org> wrote:
> Chris Newton wrote:
>
>> Here is a small fix for the url-http function. When binding the
>> url-show-status and/or url-display-percentage variables they would not
>> get copied to the async buffer. So calls to url-lazy-message would not
>> do the correct thing. The patch just adds those two functions to the
>> list of variables to be copied. Thanks.
>
> I'm sorry, can you explain why this is necessary? Can you give an
> example of what the behaviour is with and without this change?
>
> On the face of it, this change makes no sense to me. url-show-status
> is a user option, and url-display-percentage is a function, not a
> variable.
>
>
> @@ -1142,6 +1144,8 @@
> url-http-chunked-start
> url-callback-function
> url-callback-arguments
> + url-show-status
> + url-display-percentage
> url-http-process
> url-http-method
> url-http-extra-headers
>
This bug report was last modified 13 years and 315 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.