From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Denis Bueno" Newsgroups: gmane.emacs.help Subject: Re: compile in specific folder Date: Wed, 20 Jun 2007 08:32:36 -0600 Message-ID: References: <1182333067.235235.97510@q69g2000hsb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0794775393==" X-Trace: sea.gmane.org 1182351262 17479 80.91.229.12 (20 Jun 2007 14:54:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2007 14:54:22 +0000 (UTC) To: "Martin" , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 20 16:54:17 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I11ZZ-0001wb-8t for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Jun 2007 16:54:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I11ZY-0004Kx-IW for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Jun 2007 10:54:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I11ZJ-0004Jd-FL for help-gnu-emacs@gnu.org; Wed, 20 Jun 2007 10:54:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I11ZG-0004Eh-OX for help-gnu-emacs@gnu.org; Wed, 20 Jun 2007 10:54:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I11ZG-0004ES-GJ for help-gnu-emacs@gnu.org; Wed, 20 Jun 2007 10:53:58 -0400 Original-Received: from mm04snlnto.sandia.gov ([132.175.109.21] helo=sentry.sandia.gov) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I11ZF-0001tJ-EB for help-gnu-emacs@gnu.org; Wed, 20 Jun 2007 10:53:57 -0400 Original-Received: from [134.253.164.156] by sentry.sandia.gov with ESMTP (SMTP Relay 01 (Email Firewall v6.3.1)); Wed, 20 Jun 2007 08:32:36 -0600 X-Server-Uuid: AA8306FD-23D1-4E5B-B133-B2D9F10C3631 Original-Received: from ES21SNLNT.srn.sandia.gov ([134.253.164.104]) by ES23SNLNT.srn.sandia.gov with Microsoft SMTPSVC(6.0.3790.3959); Wed, 20 Jun 2007 08:32:36 -0600 Original-Received: from 134.253.202.158 ([134.253.202.158]) by ES21SNLNT.srn.sandia.gov ([134.253.164.116]) with Microsoft Exchange Server HTTP-DAV ; Wed, 20 Jun 2007 14:32:36 +0000 User-Agent: Microsoft-Entourage/11.3.3.061214 Thread-Topic: compile in specific folder Thread-Index: AcezJ32Pnlu9Xwk9RHO3bu8gI1T6TwAIFr1q In-Reply-To: <1182333067.235235.97510@q69g2000hsb.googlegroups.com> X-OriginalArrivalTime: 20 Jun 2007 14:32:36.0931 (UTC) FILETIME=[D9132930:01C7B347] X-TMWD-Spam-Summary: TS=20070620143237; SEV=2.2.2; DFV=B2007062011; IFV=2.0.4,4.0-9; AIF=B2007062011; RPD=5.02.0125; ENG=IBF; RPDID=7374723D303030312E30413031303230342E34363739334138352E303032332C73733D312C6667733D30; CAT=NONE; CON=NONE X-MMS-Spam-Filter-ID: B2007062011_5.02.0125_4.0-9 X-WSS-ID: 6A67E50E3DG2789460-01-01 X-detected-kernel: Windows 2000 SP4, XP SP1+ X-Greylist: delayed 1271 seconds by postgrey-1.27 at monty-python; Wed, 20 Jun 2007 10:53:56 EDT X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45184 Archived-At: > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============0794775393== Content-Type: multipart/alternative; boundary=B_3265173156_111509 > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3265173156_111509 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On 06/20/2007 03:51, "Martin" 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 --B_3265173156_111509 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable Re: compile in specific folder
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 'compil= e)))

-Denis
--B_3265173156_111509-- --===============0794775393== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0794775393==--