From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: build-and-save-all Date: Thu, 02 Dec 2004 10:58:27 -0700 Message-ID: <3193e6F38p1g3U1@individual.net> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1102010494 896 80.91.229.6 (2 Dec 2004 18:01:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Dec 2004 18:01:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 02 19:01:23 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CZvGc-0003Yv-00 for ; Thu, 02 Dec 2004 19:01:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CZvQA-0001FZ-TM for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Dec 2004 13:11:14 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-X-Trace: individual.net 05oJdoNOdICu672joVpayAPkkalDYeAt071ppaDJcCe65HiNc= User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:127100 Original-To: help-gnu-emacs@gnu.org 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: main.gmane.org gmane.emacs.help:22516 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22516 Rodrigo Canellas wrote: > I would like to create a function that would save all the buffers and then > build the project being edited. > > If I got it tight, in order to run 'make' the cursor must be in the buffer of > the 'makefile', or at least in a buffer of a file saved in the same directory > of the 'makefile'. So, before calling 'make', this function must first set > the 'makefile' buffer as the current buffer. Right. So how do you know where the Makefile is, and what it is called? Once that's established, it should be simple to implement in Emacs Lisp. -- Kevin Rodgers