help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: A question about interactive


From: Drew Adams
Subject: RE: A question about interactive
Date: Thu, 21 Mar 2013 06:24:02 -0700

> Here's what I want to do  - I'd like to write utility
> functions in different el files and store them in a
> particular directory. then write a function in .emacs
> - say - my-script-load ... What I'd like it to do is
> this: (interactive "fEnter script name: ")
>
> Now, the problem is that  the ineractive "f" seems to
> use the current buffer location as the starting point.
> How can I change that? 

In the `interactive' spec, let-bind `default-directory' and then read the file
name with `read-file-name'.  See the doc for `interactive'.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]