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

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

Re: compile in specific folder


From: Denis Bueno
Subject: Re: compile in specific folder
Date: Wed, 20 Jun 2007 08:32:36 -0600
User-agent: Microsoft-Entourage/11.3.3.061214


On 06/20/2007 03:51, "Martin" <address@hidden> 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

reply via email to

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