From: Marius Hofert <marius.hofert@math.ethz.ch>
To: nicholas.dokos@hp.com
Cc: Emacs help <emacs-orgmode@gnu.org>,
Jambunathan K <kjambunathan@gmail.com>
Subject: Re: How to set up anniversaries/birthdays with org-contacts-anniversaries?
Date: Wed, 9 Nov 2011 00:17:30 +0100 [thread overview]
Message-ID: <BF8370F4-5D08-4725-9787-9CF413FA4F08@math.ethz.ch> (raw)
In-Reply-To: <F2E45086-C623-4613-84FE-EA31E70E1B82@math.ethz.ch>
Okay, I assume it's (require 'diary-lib) then.
On 2011-11-09, at 00:13 , Marius Hofert wrote:
>
> On 2011-11-09, at 00:06 , Nick Dokos wrote:
>
>> Marius Hofert <marius.hofert@math.ethz.ch> 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)
>
> I obtain (also for (load-library "diary") ):
> File error: Cannot open load file, diary
>
> I assume I'm missing some diary.el (?).
>
> I'm wondering why diary is needed anyway? Julien does not specifically mention it:
> http://julien.danjou.info/org-contacts.html
>
> Cheers,
>
> Marius
>
>
>>
>> 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.
>>>>
>>>>
>>>>
>>>
>
ETH Zurich
Dr. Marius Hofert
RiskLab, Department of Mathematics
HG E 65.2
Rämistrasse 101
8092 Zurich
Switzerland
Phone +41 44 632 2423
marius.hofert@math.ethz.ch
http://www.math.ethz.ch/~hofertj
next prev parent reply other threads:[~2011-11-08 23:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-06 11:05 How to set up anniversaries/birthdays with org-contacts-anniversaries? Marius Hofert
2011-11-08 21:03 ` Marius Hofert
2011-11-08 21:33 ` Nick Dokos
2011-11-08 21:43 ` Marius Hofert
2011-11-08 22:07 ` Nick Dokos
2011-11-08 22:16 ` Marius Hofert
2011-11-08 22:33 ` Jambunathan K
2011-11-08 22:36 ` Marius Hofert
2011-11-08 22:50 ` Jambunathan K
2011-11-08 23:06 ` Nick Dokos
2011-11-08 23:13 ` Marius Hofert
2011-11-08 23:17 ` Marius Hofert [this message]
2011-11-08 23:21 ` Nick Dokos
2011-11-08 23:25 ` Marius Hofert
2011-11-08 23:37 ` Jonathan Leech-Pepin
2011-11-08 23:12 ` Marius Hofert
2011-11-08 22:48 ` Nick Dokos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BF8370F4-5D08-4725-9787-9CF413FA4F08@math.ethz.ch \
--to=marius.hofert@math.ethz.ch \
--cc=emacs-orgmode@gnu.org \
--cc=kjambunathan@gmail.com \
--cc=nicholas.dokos@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.