From: Mathias Dahl <brakjoller.rem0veth1s@gmail.com>
Subject: Re: Reading a directory with (interactive "Dxxx")
Date: Tue, 19 Apr 2005 17:46:10 +0200 [thread overview]
Message-ID: <uoecaepml.fsf@gmail.com> (raw)
In-Reply-To: bjjvf6j40af.fsf@termo1.fi.uib.no
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
next prev parent reply other threads:[~2005-04-19 15:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-19 8:51 Reading a directory with (interactive "Dxxx") Joakim Hove
2005-04-19 15:46 ` Mathias Dahl [this message]
2005-04-20 6:06 ` Joakim Hove
2005-04-20 9:33 ` Mathias Dahl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uoecaepml.fsf@gmail.com \
--to=brakjoller.rem0veth1s@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).