emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Steinar Bang <sb@dod.no>
To: emacs-orgmode@gnu.org
Subject: Re: Error in org2blog/wp-login: "Must provide a callback function to url-retrieve"
Date: Tue, 01 May 2012 10:45:49 +0200	[thread overview]
Message-ID: <87haw08f2a.fsf@dod.no> (raw)
In-Reply-To: 87zk9t81ih.fsf@dod.no

>>>>> 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
           (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?

  reply	other threads:[~2012-05-01  8:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-30 19:26 Error in org2blog/wp-login: "Must provide a callback function to url-retrieve" Steinar Bang
2012-05-01  8:45 ` Steinar Bang [this message]
2012-05-01 14:23   ` Steinar Bang
2012-05-01 14:25     ` Puneeth Chaganti
2012-05-01 15:18       ` Steinar Bang
2012-05-01 14:56   ` Rafael

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87haw08f2a.fsf@dod.no \
    --to=sb@dod.no \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).