From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Newsgroups: gmane.emacs.help Subject: compile in specific folder Date: Wed, 20 Jun 2007 09:51:07 -0000 Organization: http://groups.google.com Message-ID: <1182333067.235235.97510@q69g2000hsb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1182336036 23370 80.91.229.12 (20 Jun 2007 10:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2007 10:40:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 20 12:40:34 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 1I0xc2-0005iV-0h for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Jun 2007 12:40:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0xc1-0003ag-GY for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Jun 2007 06:40:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!q69g2000hsb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 134.130.222.73 Original-X-Trace: posting.google.com 1182333067 17394 127.0.0.1 (20 Jun 2007 09:51:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 20 Jun 2007 09:51:07 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 (Debian-1.5.dfsg+1.5.0.7-2),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: q69g2000hsb.googlegroups.com; posting-host=134.130.222.73; posting-account=CcyRbAwAAAA3Q1SnjcEWvdiZewaBAN6Y Original-Xref: shelby.stanford.edu gnu.emacs.help:149590 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:45178 Archived-At: 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? And while we're on the topic of compiling. How do I make compile to be non-interactive? => I want to be able to define a key for "make all" and one for just "make. Thanks in advance Martin