[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading a directory with (interactive "Dxxx")
From: |
Mathias Dahl |
Subject: |
Re: Reading a directory with (interactive "Dxxx") |
Date: |
Tue, 19 Apr 2005 17:46:10 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) |
Joakim Hove <hove@ift.uib.no> 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