Re: [O] org-caldav problem: void-function url-http-options

2013-02-09 Thread David Engster
Julien Cubizolles writes:
> David Engster  writes:
>
>> Julien Cubizolles writes:
>>> Since a few days (maybe an emacs update) I get this error message
>>> whenever I run org-caldav-sync. 
>>>
>>> Debugger entered--Lisp error: (void-function url-http-options)
>>>
>>> I've been digging around a bit and url-http-options is defined in
>>> url-http.el which is present on my system
>>> (/usr/share/emacs/24.3.50/lisp/url/url-http.el.gz) so I don't understand
>>> why it isn't found (assuming that void-function message actually means
>>> it can't find the definition of the function).
>>
>> Does doing a (require 'url-http) before calling org-caldav help?
>
> Yes it does, thanks, I should have thought of it. Why has it become
> necessary ? 

This change here is responsible:

revno: 110337
committer: Stefan Monnier 
branch nick: trunk
timestamp: Mon 2012-10-01 23:48:01 -0400
message:
  * lisp/url/url-http.el (url-http-user-agent-string): Leak less info.
  (url-http, url-http-file-exists-p, url-http-file-readable-p)
  (url-http-file-attributes, url-http-options, url-https-default-port)
  (url-https-asynchronous-p): Don't autoload.

> It seems that url-http-options is called by
> url-dav-supported-p, defined in url-dav.el. Shouldn't url-dav.el require
> url-http.el ?

Yes, it should. Could you file a bug report about this?

-David



Re: [O] org-caldav problem: void-function url-http-options

2013-02-09 Thread Julien Cubizolles
David Engster  writes:

> Julien Cubizolles writes:
>> Since a few days (maybe an emacs update) I get this error message
>> whenever I run org-caldav-sync. 
>>
>> Debugger entered--Lisp error: (void-function url-http-options)
>>
>> I've been digging around a bit and url-http-options is defined in
>> url-http.el which is present on my system
>> (/usr/share/emacs/24.3.50/lisp/url/url-http.el.gz) so I don't understand
>> why it isn't found (assuming that void-function message actually means
>> it can't find the definition of the function).
>
> Does doing a (require 'url-http) before calling org-caldav help?

Yes it does, thanks, I should have thought of it. Why has it become
necessary ?  It seems that url-http-options is called by
url-dav-supported-p, defined in url-dav.el. Shouldn't url-dav.el require
url-http.el ?

Julien.



Re: [O] org-caldav problem: void-function url-http-options

2013-02-09 Thread David Engster
Julien Cubizolles writes:
> Since a few days (maybe an emacs update) I get this error message
> whenever I run org-caldav-sync. 
>
> Debugger entered--Lisp error: (void-function url-http-options)
>
> I've been digging around a bit and url-http-options is defined in
> url-http.el which is present on my system
> (/usr/share/emacs/24.3.50/lisp/url/url-http.el.gz) so I don't understand
> why it isn't found (assuming that void-function message actually means
> it can't find the definition of the function).

Does doing a (require 'url-http) before calling org-caldav help?

-David



[O] org-caldav problem: void-function url-http-options

2013-02-09 Thread Julien Cubizolles

Since a few days (maybe an emacs update) I get this error message
whenever I run org-caldav-sync. 

--8<---cut here---start->8---
Debugger entered--Lisp error: (void-function url-http-options)
  
url-http-options("https://www.google.com/calendar/dav/0fseo5jbfp99polnfc6ic38...@group.calendar.google.com/events/";)
  
url-dav-supported-p("https://www.google.com/calendar/dav/0fseo5jbfp99polnfc6ic38...@group.calendar.google.com/events/";)
  (or (and (boundp (quote url-dav-patched-version)) url-dav-patched-version) 
(url-dav-supported-p (org-caldav-events-url)))
  (if (or (and (boundp (quote url-dav-patched-version)) 
url-dav-patched-version) (url-dav-supported-p (org-caldav-events-url))) nil 
(error "You have to either use Emacs from bzr, or the patched `url-dav' package 
from the org-caldav repository."))
  org-caldav-sync()
  call-interactively(org-caldav-sync record nil)
  command-execute(org-caldav-sync record)
  execute-extended-command(nil "org-caldav-sync")
  call-interactively(execute-extended-command nil nil)
--8<---cut here---end--->8---

I've been digging around a bit and url-http-options is defined in
url-http.el which is present on my system
(/usr/share/emacs/24.3.50/lisp/url/url-http.el.gz) so I don't understand
why it isn't found (assuming that void-function message actually means
it can't find the definition of the function).

Everything was working fine with org-caldav before and I was very happy
with it. Thanks a lot to its developper.

Julien.