[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
set a "default" directory in a function when asking for a file
From: |
Niels Felsted Thorsen |
Subject: |
set a "default" directory in a function when asking for a file |
Date: |
Sun, 16 Nov 2008 14:39:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Hi
I have a function like this:
(defun testfun (file)
(interactive "fFile: ")
(message file))
But it will ask for the file based on, as I understand it, the value
of "default-directory" which is buffer-local.
Is there a way to specify default-directory just for this function? So
it will always start with fx:
File: ~/foo/bar/
when asking for the file.
- set a "default" directory in a function when asking for a file,
Niels Felsted Thorsen <=