From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: tumme directory Date: Fri, 10 Feb 2006 20:34:15 +1300 Message-ID: <17388.16887.875573.965639@kahikatea.snap.net.nz> References: <87r76t8afw.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1139557002 32754 80.91.229.2 (10 Feb 2006 07:36:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2006 07:36:42 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 10 08:36:36 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 1F7SpP-0002CB-6I for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2006 08:36:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7SpO-0007sF-Gk for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2006 02:36:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F7Sog-0007a0-CF for emacs-devel@gnu.org; Fri, 10 Feb 2006 02:35:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F7Soc-0007YF-IG for emacs-devel@gnu.org; Fri, 10 Feb 2006 02:35:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7Soc-0007YA-47 for emacs-devel@gnu.org; Fri, 10 Feb 2006 02:35:38 -0500 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F7SsG-0002g4-5r; Fri, 10 Feb 2006 02:39:24 -0500 Original-Received: from kahikatea.snap.net.nz (p202-124-114-131.snap.net.nz [202.124.114.131]) by viper.snap.net.nz (Postfix) with ESMTP id A6D2E745BC9; Fri, 10 Feb 2006 20:35:22 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id B42728890; Fri, 10 Feb 2006 20:34:16 +1300 (NZDT) Original-To: Mattis In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.50.58 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:50308 Archived-At: > I have tried to understand what this convention is, and I don't like > to guess so I'd like to ask a simple yes/no question: > > Should tumme's default thumbnail directory be ~/.tumme if there is no > ~/.emacs.d and ~/.emacs.d/tumme, if it does? If yes, how do we let the > user configure this? Today, the configuration is as simple as this: > > (defcustom tumme-dir "~/.tumme/" > "*Directory where thumbnail images for are stored." > :type 'string > :group 'tumme) > > How would it be changed? 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)) etc... Nick