From: rustom <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: using interactive for getting into a specific directory
Date: Wed, 14 Nov 2007 18:33:20 -0800 (PST) [thread overview]
Message-ID: <33099241-ca01-43cf-bbe3-ba63d4f867f6@i12g2000prf.googlegroups.com> (raw)
I want to write an interactive function that finds an arbitrary file
from a specific directory "~/org"
The following attempts do not work but should give the idea what I am
trying.
(defun startorg(file)
(interactive "FFile: ")
(let ((default-directory "~/org"))
(find-file file)
))
(defun startorg(file)
(cd "~/org")
(interactive "FFile: ")
(find-file file)
)
The general problem can be stated as:
I want to write an interactive command -- here startorg -- whose
interactive actions -- here "F..." -- needs preprocessing with another
function -- here cd.
next reply other threads:[~2007-11-15 2:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-15 2:33 rustom [this message]
2007-11-15 5:13 ` using interactive for getting into a specific directory rustom
2007-11-16 0:28 ` Johan Bockgård
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=33099241-ca01-43cf-bbe3-ba63d4f867f6@i12g2000prf.googlegroups.com \
--to=rustompmody@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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).