From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: duke Newsgroups: gmane.emacs.help Subject: Re: Passing current buffer to compile command Date: Mon, 17 Jan 2011 11:09:10 -0800 (PST) Organization: http://groups.google.com Message-ID: <6dde1aff-4d44-4bdb-ab0d-e3839147a0a1@a10g2000vby.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1295293389 22295 80.91.229.12 (17 Jan 2011 19:43:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 Jan 2011 19:43:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 17 20:43:05 2011 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.69) (envelope-from ) id 1Peuym-0005As-9i for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Jan 2011 20:43:04 +0100 Original-Received: from localhost ([127.0.0.1]:36691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Peuyl-0007V6-K8 for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Jan 2011 14:43:03 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!a10g2000vby.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 75.154.79.220 Original-X-Trace: posting.google.com 1295291350 25559 127.0.0.1 (17 Jan 2011 19:09:10 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 17 Jan 2011 19:09:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a10g2000vby.googlegroups.com; posting-host=75.154.79.220; posting-account=KgDXmwoAAAC0yXS4JIhvW9CYf-pfPgw- User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101206 SeaMonkey/2.0.11,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:184345 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:78517 Archived-At: On Jan 16, 10:48=A0pm, des...@verizon.net wrote: > des...@verizon.net writes: > > duke writes: > > >> How do I do that? I'm not using make, but another compiler. So I need > >> to pass a filename. Instead of inputing the filename, how do I pass > >> the current buffer file name? %f ? > > > What does make have to do with the compiler? > > > Your best bet is to learn make, it will pay back dividends later. > > > But if you insist, one solution is to put a comment block at the end > > of your file like this: > > > # Local Variables: > > # compile-command: "mycompiler myfile" > > # End: > > To activate above, save buffer to file, delete buffer, reload buffer. Cool! thanks...