From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: [OT] Icon problem with org-google-weather Date: Sun, 05 Jun 2011 20:27:21 -0400 Message-ID: <24071.1307320041@alphaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTNfa-00026v-D0 for emacs-orgmode@gnu.org; Sun, 05 Jun 2011 20:27:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTNfZ-0002uN-CQ for emacs-orgmode@gnu.org; Sun, 05 Jun 2011 20:27:50 -0400 Received: from vms173013pub.verizon.net ([206.46.173.13]:52179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTNfZ-0002uF-9B for emacs-orgmode@gnu.org; Sun, 05 Jun 2011 20:27:49 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LMC00006ELLFSZ0@vms173013.mailsrvcs.net> for emacs-orgmode@gnu.org; Sun, 05 Jun 2011 19:27:34 -0500 (CDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: nicholas.dokos@hp.com 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