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:13:52 +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="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNurb-0002vP-E1 for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 18:13:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNura-0003Hw-9j for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 18:13:55 -0500 Received: from edge20.ethz.ch ([82.130.99.26]:20840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNurZ-0003Hq-UQ for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 18:13:54 -0500 In-Reply-To: <6927.1320793592@alphaville.americas.hpqcorp.net> 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 On 2011-11-09, at 00:06 , Nick Dokos wrote: > 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) I obtain (also for (load-library "diary") ): File error: Cannot open load file, diary I assume I'm missing some diary.el (?).=20 I'm wondering why diary is needed anyway? Julien does not specifically = mention it: http://julien.danjou.info/org-contacts.html Cheers, Marius >=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