From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org google weather Date: Sat, 05 Mar 2011 14:57:37 -0500 Message-ID: <9346.1299355057@alphaville.dokosmarshall.org> References: <87oc5rlwc4.wl%lists@700c.org> <4D70A577.4000509@manor-farm.org> <80k4gfnth7.fsf@somewhere.org> <4D70CCB6.5080101@manor-farm.org> <8736.1299256681@alphaville.dokosmarshall.org> <4427.1299270361@alphaville.usa.hp.com> <8739n1j2ec.fsf@gnu.org> <7981.1299338612@alphaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=34458 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pvxbz-0005oz-9D for emacs-orgmode@gnu.org; Sat, 05 Mar 2011 14:58:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pvxby-0000mO-6F for emacs-orgmode@gnu.org; Sat, 05 Mar 2011 14:57:59 -0500 Received: from vms173005pub.verizon.net ([206.46.173.5]:60087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pvxby-0000m0-2w for emacs-orgmode@gnu.org; Sat, 05 Mar 2011 14:57:58 -0500 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LHL008FIOS2LW40@vms173005.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 05 Mar 2011 13:57:45 -0600 (CST) In-reply-to: Message from Matthew Sauer of "Sat\, 05 Mar 2011 11\:46\:38 CST." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matthew Sauer Cc: Bastien , Konrad Hinsen , nicholas.dokos@hp.com, Org Mode Mailing List Matthew Sauer wrote: > Thanks that worked, as I said Noob, somethings get the quote and some don= 't.=C2=A0 Now if I can just get > org-contacts to load correctly, void variable value, life will be great.= =C2=A0 I think I am starting to > get the hang of this language. > Matthew >=20 The main thing to remember is that quote inhibits evaluation: 'a gives you the symbol a whereas a without the quote gives you the *value* of a. Remember also that in lisp, you call a function func with arguments x and y like this: (func x y) - this calls the function func on the *values* of x and y and returns a function value (which of course depends on how the function is defined). OTOH, '(func x y) is a list of three elements: func, x and y. So '(require 'google-weather) does nothing whereas (require 'google-weather)=20 calls the function require with the symbol google-weather as its argument. OTOH, the incorrect (require google-weather) would call the same function with the *value* of the symbol google-weather as its argument. Since the symbol has no value, you'd get an error. Hope this makes things a bit clearer, but there is nothing like getting an elementary book on Lisp (or the Emacs Lisp introductory tutorial which should be available in your emacs or online). As for org-contacts, I just did a git pull (from git://git.naquadah.org/org-contacts.git) and I was able to load it with no problems. Also I don't see a variable named "value" in the file, so either your report of the error is inaccurate or your version is older. Try the latest version and if you still have problems, checkout out section 1.4, "Feedback", of the Org manual to find out how to produce a useful backtrace - then post that to the list. Nick