From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: How to set up anniversaries/birthdays with org-contacts-anniversaries? Date: Tue, 08 Nov 2011 18:06:32 -0500 Message-ID: <6927.1320793592@alphaville.americas.hpqcorp.net> 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> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNukW-0000uf-Tw for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 18:06:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNukV-0001LC-BZ for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 18:06:36 -0500 Received: from g6t0187.atlanta.hp.com ([15.193.32.64]:6823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNukU-0001L1-TD for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 18:06:35 -0500 In-Reply-To: Message from Marius Hofert of "Tue, 08 Nov 2011 23:36:12 +0100." <3DF8E988-B416-43D2-BFEB-D83C31216C14@math.ethz.ch> 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: Marius Hofert Cc: nicholas.dokos@hp.com, Emacs help , Jambunathan K Marius Hofert wrote: > Thanks for the explanation. Is there also an equivalent solution by just adjusting .emacs? > > If you are going to use emacs extensively, you probably should read the emacs reference manual and maybe the emacs lisp introduction as well. M-x foo RET is entirely equivalent to evaluating (foo) 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. 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 (load-library "diary") 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: (require 'diary) Note that load-library takes a string as argument, whereas require takes a symbol. Nick > On 2011-11-08, at 23:33 , Jambunathan K wrote: > > >> Debugger entered--Lisp error: (void-function diary-anniversary) > > > > There is a universal solution to this problem > > > > M-x load-library RET diary TAB > > > > and choose which of the options make most sense or try each one of them > > in turn. > > > > Note that in the above load-library you are using "diary" because it is > > the "prefix" of function (or variable) which reported as void. > > > > The load-library call unvoids the void things. > > > > > > >