From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steinar Bang Subject: Re: Error in org2blog/wp-login: "Must provide a callback function to url-retrieve" Date: Tue, 01 May 2012 10:45:49 +0200 Message-ID: <87haw08f2a.fsf@dod.no> References: <87zk9t81ih.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SP8ig-0004N2-8H for emacs-orgmode@gnu.org; Tue, 01 May 2012 04:46:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SP8ie-0002RU-8f for emacs-orgmode@gnu.org; Tue, 01 May 2012 04:46:01 -0400 Received: from plane.gmane.org ([80.91.229.3]:54905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SP8ie-0002RN-1l for emacs-orgmode@gnu.org; Tue, 01 May 2012 04:46:00 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SP8ic-0000T5-Dw for emacs-orgmode@gnu.org; Tue, 01 May 2012 10:45:58 +0200 Received: from cm-84.208.231.161.getinternet.no ([84.208.231.161]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 May 2012 10:45:58 +0200 Received: from sb by cm-84.208.231.161.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 May 2012 10:45:58 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org >>>>> Steinar Bang : > When I try to log in, using `M-x org2blog/wp-login RET', I get the > following error message in the minibuffer: > Must provide a callback function to url-retrieve Are anyone else successfully using org2blog with emacs 23? I don't think this have worked for any emacs 23.x releases. 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) Ie. with a callback function as the second argument. In both 1.6.7 (the ELPA version) and the 1.6.8 (the last release, dating from 2010-03-05) versions of xml-rpc.el what happens is this: ... (cond ((boundp 'url-be-asynchronous) ; Sniff for w3 lib capability (if async-callback-function (setq url-be-asynchronous t url-current-callback-data (list async-callback-function (current-buffer)) url-current-callback-func 'xml-rpc-request-callback-handler) (setq url-be-asynchronous nil)) (url-retrieve server-url t) Ie. if url-be-asynchronous is defined, url-retrieve is called with t as the second argument, and this will fail because url-retrieve-internal tests the argument like so: ... (if (not (functionp callback)) (error "Must provide a callback function to url-retrieve")) Thoughts? Possible cures?