From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Hofert Subject: Re: How to set up anniversaries/birthdays with org-contacts-anniversaries? Date: Wed, 9 Nov 2011 00:17:30 +0100 Message-ID: References: <49FF00AC-D45D-41ED-95A9-98C771F52282@math.ethz.ch> <32789D68-74E0-4B80-9C17-BB9C405535F9@math.ethz.ch> <4660.1320787996@alphaville.americas.hpqcorp.net> <545524F1-AC54-4ADB-8EDA-6AA4BBAA551E@math.ethz.ch> <5493.1320790042@alphaville.americas.hpqcorp.net> <81sjlykzwm.fsf@gmail.com> <3DF8E988-B416-43D2-BFEB-D83C31216C14@math.ethz.ch> <6927.1320793592@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNuv7-0004FC-BJ for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 18:17:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNuv6-0003hX-BJ for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 18:17:33 -0500 Received: from edge10.ethz.ch ([82.130.75.186]:53854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNuv6-0003hR-0E for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 18:17:32 -0500 In-Reply-To: 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: nicholas.dokos@hp.com Cc: Emacs help , Jambunathan K Okay, I assume it's (require 'diary-lib) then. On 2011-11-09, at 00:13 , Marius Hofert wrote: >=20 > On 2011-11-09, at 00:06 , Nick Dokos wrote: >=20 >> Marius Hofert wrote: >>=20 >>> Thanks for the explanation. Is there also an equivalent solution by = just adjusting .emacs? >>>=20 >>>=20 >>=20 >> If you are going to use emacs extensively, you probably should read = the >> emacs reference manual and maybe the emacs lisp introduction as >> well. >>=20 >> M-x foo RET is entirely equivalent to evaluating >>=20 >> (foo) >>=20 >> which is a call to function foo. (foo) is the more general mechanism: = it >> works for any lisp function, M-x foo works iff foo is a command (aka = an >> "interactive" function). The form (foo) can be added to .emacs. >>=20 >> load-library is a command that takes an argument: the name of the = library >> to load. See its doc string for details. M-x load-library RET diary = RET >> is entirely equivalent to evaluating >>=20 >> (load-library "diary") >>=20 >> This calls the function load-library with the string argument = "diary". >> This form can be added to .emacs. Alternatively, you can use the >> require form that I posted: >>=20 >> (require 'diary) >=20 > I obtain (also for (load-library "diary") ): > File error: Cannot open load file, diary >=20 > I assume I'm missing some diary.el (?).=20 >=20 > I'm wondering why diary is needed anyway? Julien does not specifically = mention it: > http://julien.danjou.info/org-contacts.html >=20 > Cheers, >=20 > Marius >=20 >=20 >>=20 >> Note that load-library takes a string as argument, whereas require = takes >> a symbol. >>=20 >> Nick >>=20 >>=20 >>> On 2011-11-08, at 23:33 , Jambunathan K wrote: >>>=20 >>>>> Debugger entered--Lisp error: (void-function diary-anniversary) >>>>=20 >>>> There is a universal solution to this problem >>>>=20 >>>> M-x load-library RET diary TAB >>>>=20 >>>> and choose which of the options make most sense or try each one of = them >>>> in turn. >>>>=20 >>>> Note that in the above load-library you are using "diary" because = it is >>>> the "prefix" of function (or variable) which reported as void. >>>>=20 >>>> The load-library call unvoids the void things. >>>>=20 >>>>=20 >>>>=20 >>>=20 >=20 ETH Zurich Dr. Marius Hofert RiskLab, Department of Mathematics HG E 65.2 R=E4mistrasse 101 8092 Zurich Switzerland Phone +41 44 632 2423 marius.hofert@math.ethz.ch http://www.math.ethz.ch/~hofertj