emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [OT] Icon problem with org-google-weather
@ 2011-06-06  0:27 Nick Dokos
  2011-06-06  7:38 ` Tassilo Horn
  2011-06-07  4:53 ` Nick Dokos
  0 siblings, 2 replies; 7+ messages in thread
From: Nick Dokos @ 2011-06-06  0:27 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: nicholas.dokos

This is off-topic but it is driving me bananas. I do

--8<---------------cut here---------------start------------->8---
(setq date '(6 5 2011))
(6 5 2011)
(setq foo (let ((org-google-weather-cache-time 0))
      (org-google-weather)))
(setq bar (org-google-weather))
(equal foo bar)
(insert foo)
(insert bar)
--8<---------------cut here---------------end--------------->8---

in the *scratch* buffer. The idea is that foo is freshly obtained from
google every time: it never goes to cached data since the cache time is
set to 0. bar, otoh, is obtained from cache.  I've traced the code and
that's indeed what happens.  The two strings compare equal: (equal foo bar)
returns t - just in case, I also displayed them in separate windows and
did a compare-windows: they are the same that way too.

Nevertheless, when I insert foo, the icon is shown, but when I insert
bar, the icon is an empty box. What am I missing?

Thanks,
Nick

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

end of thread, other threads:[~2011-06-07  4:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-06  0:27 [OT] Icon problem with org-google-weather Nick Dokos
2011-06-06  7:38 ` Tassilo Horn
2011-06-06 13:51   ` Nick Dokos
2011-06-06 15:27     ` Tassilo Horn
2011-06-06 15:40       ` Nick Dokos
2011-06-06 16:35         ` Nick Dokos
2011-06-07  4:53 ` Nick Dokos

Code repositories for project(s) associated with this public inbox

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

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).