For GNU emacs >=23.1 url-retrieve is called with the wrong arguments
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xml-rpc-el |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In both emacs 23.1 (Ubuntu 10.4) and 23.4 (debian testing)
url-retrieve is defined like this:
(defun url-retrieve (url callback &optional cbargs)
In xml-rpc.el the url-retrieve method is called like this:
...
(cond ((boundp 'url-be-
(if async-callback-
(setq url-be-asynchronous t
(setq url-be-asynchronous nil))
Ie. if url-be-asynchronous is defined, url-retrieve is called with t as
the second argument, and this will fail because url-retrieve-
tests the argument like so:
...
(if (not (functionp callback))
(error "Must provide a callback function to url-retrieve"))
Please disregard this bug. I had some very old settings (older than 2002-03-12, which is as far as my current version control goes), that interfered and caused the wrong branch of a cond clause to be called: fonts-take- precedence t ; Use _my_ font. user-colors- take-precedence t ; Use _my_ colors. honor-styleshee ts nil ; No, just do it.. use-terminal- characters nil ; No weird characters. use-terminal- characters- on-tty nil horizontal- rule-char 45 ; I said: no weird characters display- frames nil be-asynchronous t do-incremental- display t honor-refresh- requests nil delay-image- loads t)
(setq w3-user-
w3-
w3-
w3-
w3-
w3-
w3-
url-
w3-
url-
w3-
I removed the url-be-asynchronous setting and then xml-rpc worked.