all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* extremely weird "bad sexp" errors
@ 2010-09-15 11:30 Friedrich Delgado
  2010-09-16  8:39 ` extremely weird "bad sexp" errors with org-google-weather [was: extremely weird "bad sexp" errors] Friedrich Delgado
  0 siblings, 1 reply; 5+ messages in thread
From: Friedrich Delgado @ 2010-09-15 11:30 UTC (permalink / raw)
  To: Emacs-orgmode mailing list

Hi!

For some strange reason, as of today, the combination

%%(org-google-weather "Hamburg" "DE")

seems to be deeply offending, as I get a "bad sexp" error for it.

%%(org-google-weather "Hamburg")

works,

%%(org-google-weather "Berlin" "DE")

also works,

%%(org-google-weather "Hamburg" "DA")

also works (as does any other german city or language I've tried).

How could I provide debug information for this? toggle-debug-on-error
and edebug-defun give me no cookies at all.


A different issue:

It seems I have to eval (require 'org-google-weather) manually. I
have it in a private library "org-config" which I require from my main
.emacs, but that also results in "bad sexp" errors (this time for both
of my weather lines).


-- 
        Friedrich Delgado <friedel@nomaden.org>
                             TauPan on Ircnet and Freenode ;)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* extremely weird "bad sexp" errors with org-google-weather [was: extremely weird "bad sexp" errors]
  2010-09-15 11:30 extremely weird "bad sexp" errors Friedrich Delgado
@ 2010-09-16  8:39 ` Friedrich Delgado
  2010-09-16  8:42   ` Friedrich Delgado
  0 siblings, 1 reply; 5+ messages in thread
From: Friedrich Delgado @ 2010-09-16  8:39 UTC (permalink / raw)
  To: emacs-orgmode

It just occured to me, that I could have include org-google-weather in
the subject.

*bump*

Friedrich Delgado Friedrichs schrieb:
> For some strange reason, as of today, the combination
> 
> %%(org-google-weather "Hamburg" "DE")
> 
> seems to be deeply offending, as I get a "bad sexp" error for it.
[...]

-- 
        Friedrich Delgado Friedrichs <friedel@nomaden.org>
Laziness led to the invention of the most useful tools.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: extremely weird "bad sexp" errors with org-google-weather [was: extremely weird "bad sexp" errors]
  2010-09-16  8:39 ` extremely weird "bad sexp" errors with org-google-weather [was: extremely weird "bad sexp" errors] Friedrich Delgado
@ 2010-09-16  8:42   ` Friedrich Delgado
  2010-11-03 11:35     ` Niels Giesen
  0 siblings, 1 reply; 5+ messages in thread
From: Friedrich Delgado @ 2010-09-16  8:42 UTC (permalink / raw)
  To: emacs-orgmode

Oh... and I just tried to set the language back to "DE" and the
problem disappeared.

It can only guess that there might have been some problem going on
behind the curtain (e.g. on the google servers?), which has now been
resolved.

I'd appreciate if Org/org-google-weather could handle such conditions
more gracefully, and/or some instructions how to provide debug
information for those cases.

Friedrich Delgado Friedrichs schrieb:
> It just occured to me, that I could have include org-google-weather in
> the subject.
> 
> *bump*
> 
> Friedrich Delgado Friedrichs schrieb:
> > For some strange reason, as of today, the combination
> > 
> > %%(org-google-weather "Hamburg" "DE")
> > 
> > seems to be deeply offending, as I get a "bad sexp" error for it.
> [...]
> 
---Zitatende---

-- 
        Friedrich Delgado <friedel@nomaden.org>
                             TauPan on Ircnet and Freenode ;)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: extremely weird "bad sexp" errors with org-google-weather [was: extremely weird "bad sexp" errors]
  2010-09-16  8:42   ` Friedrich Delgado
@ 2010-11-03 11:35     ` Niels Giesen
  2010-11-04 10:42       ` Julien Danjou
  0 siblings, 1 reply; 5+ messages in thread
From: Niels Giesen @ 2010-11-03 11:35 UTC (permalink / raw)
  To: emacs-orgmode

Friedrich Delgado wrote:
> Oh... and I just tried to set the language back to "DE" and the
> problem disappeared.
>
> It can only guess that there might have been some problem going on
> behind the curtain (e.g. on the google servers?), which has now been
> resolved.
>
> I'd appreciate if Org/org-google-weather could handle such conditions
> more gracefully, and/or some instructions how to provide debug
> information for those cases.
>
> Friedrich Delgado Friedrichs schrieb:
>   
>> It just occured to me, that I could have include org-google-weather in
>> the subject.
>>
>> *bump*
>>
>> Friedrich Delgado Friedrichs schrieb:
>>     
>>> For some strange reason, as of today, the combination
>>>
>>> %%(org-google-weather "Hamburg" "DE")
>>>
>>> seems to be deeply offending, as I get a "bad sexp" error for it.
>>>       
>> [...]
>>
>>     
> ---Zitatende---
>
>   
Hi Friedrich,

I ran into the same problem when I had no network. My work-around was to
put something like this in my org-file:

%%(condition-case nil (org-google-weather "Tokyo" "jp") (error
"connection failed"))

Of course, having this error intercepted in org-google-weather or in the
general handling by org-mode would be preferable.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: extremely weird "bad sexp" errors with org-google-weather [was: extremely weird "bad sexp" errors]
  2010-11-03 11:35     ` Niels Giesen
@ 2010-11-04 10:42       ` Julien Danjou
  0 siblings, 0 replies; 5+ messages in thread
From: Julien Danjou @ 2010-11-04 10:42 UTC (permalink / raw)
  To: Niels Giesen; +Cc: emacs-orgmode

On Wed, Nov 03 2010, Niels Giesen wrote:

> Of course, having this error intercepted in org-google-weather or in the
> general handling by org-mode would be preferable.

I've added such a fix, hoping it will work better. :)

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-11-04 10:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-15 11:30 extremely weird "bad sexp" errors Friedrich Delgado
2010-09-16  8:39 ` extremely weird "bad sexp" errors with org-google-weather [was: extremely weird "bad sexp" errors] Friedrich Delgado
2010-09-16  8:42   ` Friedrich Delgado
2010-11-03 11:35     ` Niels Giesen
2010-11-04 10:42       ` Julien Danjou

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.