unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Joe Corneli <jcorneli@math.utexas.edu>
Subject: Re: find-file, default path
Date: Tue, 19 Jul 2005 10:46:20 -0500	[thread overview]
Message-ID: <E1DuuIW-000420-00@lab50.ma.utexas.edu> (raw)
In-Reply-To: <ufyubezy6.fsf@guido-donath.de> (message from Jan Guido Donath on Tue, 19 Jul 2005 14:35:13 +0200)

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 ()
  (interactive)
  (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	other threads:[~2005-07-19 15:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-19 12:35 find-file, default path Jan Guido Donath
2005-07-19 15:46 ` Joe Corneli [this message]
2005-07-19 16:05 ` Alex Schroeder
2005-07-19 16:23   ` Lennart Borgman
2005-07-19 16:40 ` Kevin Rodgers
     [not found] ` <mailman.1014.1121792292.20277.help-gnu-emacs@gnu.org>
2005-07-20  6:58   ` find-file + bookmarks = true? (was: find-file, default path) Mathias Dahl
2005-07-20 10:54     ` Emilio Lopes
     [not found] ` <mailman.1008.1121788609.20277.help-gnu-emacs@gnu.org>
2005-07-20  9:08   ` find-file, default path Jan Guido Donath

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=E1DuuIW-000420-00@lab50.ma.utexas.edu \
    --to=jcorneli@math.utexas.edu \
    /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).