[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: init-dir unification
From: |
Juri Linkov |
Subject: |
Re: init-dir unification |
Date: |
Sat, 05 Nov 2005 14:29:52 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
>>> ! (defvar gamegrid-user-score-file-directory "games"
>>
>> It is misleading for users when such variable contains a name relative
>> to some other directory name instead of the absolute directory name.
>> I think a better way to do this is:
>>
>> (defvar gamegrid-user-score-file-directory (init-directory "games")
>
> The idea is that the directory is not created until it is used.
Yes, that is why I removed the second argument `t' from the call to
your function `init-directory', so it will not create the directory
at the variable definition. I think the directory should be created
immediately before the package starts writing the configuration file.
--
Juri Linkov
http://www.jurta.org/emacs/