From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: Reading a directory with (interactive "Dxxx") Date: Tue, 19 Apr 2005 17:46:10 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1113925708 1900 80.91.229.2 (19 Apr 2005 15:48:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Apr 2005 15:48:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 19 17:48:25 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DNuvE-0003Nx-QY for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Apr 2005 17:45:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DNuzY-0004uK-Jn for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Apr 2005 11:50:24 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-X-Trace: individual.net tYZlK1FwTxmY0FA3ZPVFUAnsvgrFQjtQ42j6CtsjrVGclavDk4 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:h0C4K4b39Vkn6vQNNFnnq+t61Kw= Original-Xref: shelby.stanford.edu gnu.emacs.help:130255 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25824 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25824 Joakim Hove writes: > (defun store (directory) > (interactive "DPath to store in:") > (.....)) > > Which queries the user for an existing directory, and then stores a > file in there. The minibuffer dialog employs the working directory of > the current buffer as default, however I would like to provide my own > default, in general different from the working directory. Is this > possible? What about doing this instead: (interactive) ... (read-directory-name "Enter dir: " "~/") /Mathias