From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.devel Subject: Re: tumme directory Date: Fri, 10 Feb 2006 11:21:20 +0100 Message-ID: References: <87r76t8afw.fsf@stupidchicken.com> <17388.16887.875573.965639@kahikatea.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139567845 3764 80.91.229.2 (10 Feb 2006 10:37:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2006 10:37:25 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 10 11:37:22 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F7VeM-0006b3-Ma for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2006 11:37:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7VeK-00067s-13 for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2006 05:37:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F7VXy-0001tY-R9 for emacs-devel@gnu.org; Fri, 10 Feb 2006 05:30:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F7VXw-0001tG-HN for emacs-devel@gnu.org; Fri, 10 Feb 2006 05:30:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7VXs-0001t3-Ho for emacs-devel@gnu.org; Fri, 10 Feb 2006 05:30:35 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F7Vbc-0000av-GY for emacs-devel@gnu.org; Fri, 10 Feb 2006 05:34:25 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1F7VXZ-00053x-S9 for emacs-devel@gnu.org; Fri, 10 Feb 2006 11:30:13 +0100 Original-Received: from user.ifsab.se ([193.41.170.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Feb 2006 11:30:13 +0100 Original-Received: from brakjoller by user.ifsab.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Feb 2006 11:30:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 25 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: user.ifsab.se User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:wUPpQ5SvvX3wrosBDs+nsUx3T+0= 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:50323 Archived-At: Nick Roberts writes: > I don't know what the convention is either, but I would borrow from thumbs.el: > > (defcustom thumbs-thumbsdir "~/.emacs.d/thumbs" > "*Directory to store thumbnails." > :type 'directory > :group 'thumbs) > > (defun thumbs-thumbsdir () > "Return the current thumbnails directory (from `thumbs-thumbsdir'). > Create the thumbnails directory if it does not exist." > (let ((thumbs-thumbsdir (file-name-as-directory > (expand-file-name thumbs-thumbsdir)))) > (unless (file-directory-p thumbs-thumbsdir) > (make-directory thumbs-thumbsdir t) > (message "Creating thumbnails directory")) > thumbs-thumbsdir)) That looks OK to me, as long as it is OK to "force" this .emacs.d directory upon the user. Someone said "use .emacs.d if it exists" and I interpreted that as one should always use it if it exists, else use another one. Again, I think the code abobe looks good.