emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-wiki-discuss] planner-diary-el


From: fouvry+emacs-wiki
Subject: Re: [emacs-wiki-discuss] planner-diary-el
Date: Tue, 5 Apr 2005 10:46:19 +0200 (CEST)

,-- On Mon, 04 Apr 2005 10:48:22 +0200, Gijs Hillenius wrote:
| 
| Hello
| 
| If my .emacs has 
| (setq planner-diary-use-diary t)
|     (planner-diary-insinuate)
| 
| I get an error. (symbols value defenition is void, planner-diary-insinuate)
| 
| If i do 
|     (setq planner-diary-insinuate)
| 
| it (seems to) work(s).
| 
| Eh? That can't be right, right?

That's exactly what it should do.  In the first case, you're
setting a variable to t, and then calling a function.  The
function isn't defined, so you get an error.  In the second
example, you set a (different) variable to nil.  Since you can
always set variables (that defines them and sets them), the
second will always succeed.  Don't confuse variables
(`planner-diary-insinuate' in the second case) and functions
(`planner-diary-insinuate' in the first case): they are in a
different name space.

To get it to work, you need to load the function definition
first.

F




reply via email to

[Prev in Thread] Current Thread [Next in Thread]