From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: init-dir unification Date: Sat, 05 Nov 2005 14:29:52 +0200 Organization: JURTA Message-ID: <87br0zpa7j.fsf@jurta.org> References: <20051104184837.28E2F1207E6@localhost.localdomain> <87irv7vj7a.fsf@jurta.org> <87vez7cpt8.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1131194571 2625 80.91.229.2 (5 Nov 2005 12:42:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Nov 2005 12:42:51 +0000 (UTC) Cc: ihs_4664@yahoo.com, storm@cua.dk, emacs-devel@gnu.org, rms@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 05 13:42:37 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EYNMR-000691-Dx for ged-emacs-devel@m.gmane.org; Sat, 05 Nov 2005 13:41:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYNMQ-00075q-Oy for ged-emacs-devel@m.gmane.org; Sat, 05 Nov 2005 07:41:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EYNM8-00073w-0Y for emacs-devel@gnu.org; Sat, 05 Nov 2005 07:41:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EYNM6-000735-6S for emacs-devel@gnu.org; Sat, 05 Nov 2005 07:41:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYNM6-000730-1m for emacs-devel@gnu.org; Sat, 05 Nov 2005 07:41:10 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EYNM3-0001TF-TP; Sat, 05 Nov 2005 07:41:08 -0500 Original-Received: from mail.neti.ee (80-235-33-80-dsl.mus.estpak.ee [80.235.33.80]) by Relayhost1.neti.ee (Postfix) with ESMTP id 7779D1FB8; Sat, 5 Nov 2005 14:41:08 +0200 (EET) Original-To: Chong Yidong In-Reply-To: <87vez7cpt8.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 05 Nov 2005 06:11:15 -0500") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45452 Archived-At: >>> ! (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/