[Top][All Lists]

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

Re: find-file, default path

From: Joe Corneli
Subject: Re: find-file, default path
Date: Tue, 19 Jul 2005 10:46:20 -0500

Since `find-file' takes an argument, all you have to do is build the
argument using the default path and then pass the argument to
`find-file'.  The way to make this easy is to use `read-file-name'.
E.g. some variant on

(defun find-file-home-directory ()
  (find-file (read-file-name "File: " "/Users/arided/")))

BTW, I think after you find a file that isn't in the bin dir,
`find-file' will have a new default path.

reply via email to

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