From: "Denis Bueno" <denbuen@sandia.gov>
To: "Martin" <m.gercke@gmail.com>, help-gnu-emacs@gnu.org
Subject: Re: compile in specific folder
Date: Wed, 20 Jun 2007 08:32:36 -0600 [thread overview]
Message-ID: <C29E96A4.D44%denbuen@sandia.gov> (raw)
In-Reply-To: <1182333067.235235.97510@q69g2000hsb.googlegroups.com>
[-- Attachment #1.1: Type: text/plain, Size: 766 bytes --]
On 06/20/2007 03:51, "Martin" <m.gercke@gmail.com> wrote:
> Hi,
>
> I am using emacs to work on a project that needs to be compiled (call
> make) in a specific folder, independent of the current buffer.
> At the moment I am using this:
>
> (global-set-key [(f9)] 'my-compile)
>
> (defun my-compile ()
> "compile in our standard directory"
> (interactive)
> (cd mypath)
> (call-interactively 'compile)
> )
>
> However, this has the drawback that after a compile my minibuffer
> always starts in mypath instead of the current buffer's path.
> Any ideas there?
Perhaps an alternate definition will suffice?
(defun my-compile ()
(interactive)
(let ((default-directory mypath))
(call-interactively 'compile)))
-Denis
[-- Attachment #1.2: Type: text/html, Size: 1481 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
next prev parent reply other threads:[~2007-06-20 14:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-20 9:51 compile in specific folder Martin
2007-06-20 12:59 ` Peter Dyballa
2007-06-20 14:32 ` Denis Bueno [this message]
2007-06-20 16:32 ` Tom Tromey
[not found] ` <mailman.2446.1182351242.32220.help-gnu-emacs@gnu.org>
2007-07-03 9:15 ` Martin
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C29E96A4.D44%denbuen@sandia.gov \
--to=denbuen@sandia.gov \
--cc=help-gnu-emacs@gnu.org \
--cc=m.gercke@gmail.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.