Platform: Intel P4, debian testing, GNU Emacs 23.4.1 (i486-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-04-07 on biber, modified by Debian, org-mode from git, org2blog from git, xml-rpc 1.6.7 from ELPA, I am trying to use org2blog from github, but I am unable to log into the server. I have cloned the repo, and set up org2blog according to the README https://github.com/punchagan/org2blog/blob/master/README.org I'm using .netrc for the username and password (as outlined in the emacs configuration section). I have installed xml-rpc, using ELPA: http://tromey.com/elpa/ 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 Anyone got an idea? Puneeth...? The full stack trace, is: Debugger entered--Lisp error: (error "Must provide a callback function to url-retrieve") signal(error ("Must provide a callback function to url-retrieve")) error("Must provide a callback function to url-retrieve") url-retrieve-internal("http://myuser.mydomain.com/xmlrpc.php" t (nil)) url-retrieve("http://myuser.mydomain.com/xmlrpc.php" t) xml-rpc-request("http://myuser.mydomain.com/xmlrpc.php" ((methodCall nil (methodName nil "metaWeblog.getCategories") (params nil ... ... ...))) nil) xml-rpc-method-call-async(nil "http://myuser.mydomain.com/xmlrpc.php" "metaWeblog.getCategories" ("1" "myuseradmin" "supersikkertpassord")) xml-rpc-method-call("http://myuser.mydomain.com/xmlrpc.php" "metaWeblog.getCategories" "1" "myuseradmin" "supersikkertpassord") metaweblog-get-categories("http://myuser.mydomain.com/xmlrpc.php" "myuseradmin" "supersikkertpassord" "1") org2blog/wp-login() call-interactively(org2blog/wp-login t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil)
>>>>> Steinar Bang <sb@dod.no>: > 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?
>>>>> Steinar Bang <sb@dod.no>: > Are anyone else successfully using org2blog with emacs 23? > I don't think this have worked for any emacs 23.x releases. Yes it has. The problem was mine. I had a very old setting (older than 2002-03-12, which is as far as my current version control of my home directory goes), that interfered and caused the wrong branch of a cond clause to be called (the emacs 20.3 branch): (setq w3-user-fonts-take-precedence t ; Use _my_ font. w3-user-colors-take-precedence t ; Use _my_ colors. w3-honor-stylesheets nil ; No, just do it.. w3-use-terminal-characters nil ; No weird characters. w3-use-terminal-characters-on-tty nil w3-horizontal-rule-char 45 ; I said: no weird characters w3-display-frames nil url-be-asynchronous t w3-do-incremental-display t url-honor-refresh-requests nil w3-delay-image-loads t) I removed the url-be-asynchronous setting and then xml-rpc worked.
Steinar, Thanks for debugging the problem and sending us updates on it. :) I was trying to reproduce the problem, before getting back to you on this. Thanks, Puneeth
Steinar Bang <sb@dod.no> writes: >> 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 just checked that org2blog works for me with GNU Emacs 23.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.5) of 2011-08-14 on rothera, modified by Debian in Ubuntu 11.10. But I have the following header in xml-rpc.el. ;; Author: Mark A. Hershberger <mah@everybody.org> ;; Original Author: Daniel Lundin <daniel@codefactory.se> ;; Version: 1.6.8 ;; Created: May 13 2001 ;; Keywords: xml rpc network ;; URL: http://launchpad.net/xml-rpc-el ;; Last Modified: <2010-03-05 13:41:20 mah>
>>>>> Puneeth Chaganti <punchagan@gmail.com>: > Thanks for debugging the problem and sending us updates on it. :) Yes, I really hate it when I google for my problems and find questions but no solutions, so I try to avoid giving others that experience. :-) Anyway, thanks for writing org2blog. The first real posting (actually written during Christmas) is now out: http://steinar.bang.priv.no/