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: Sun, 16 Jan 2011 13:54:26 -0800 (PST) Organization: http://groups.google.com Message-ID: <28bdeca1-05df-4d91-877c-39ea82f075ca@l24g2000vby.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 1295218859 16187 80.91.229.12 (16 Jan 2011 23:00:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 16 Jan 2011 23:00:59 +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 00:00:55 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 1Pebah-0005ri-1C for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Jan 2011 00:00:55 +0100 Original-Received: from localhost ([127.0.0.1]:39091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PebHI-0002V1-R9 for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Jan 2011 17:40:52 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!l24g2000vby.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 75.154.79.220 Original-X-Trace: posting.google.com 1295214866 19559 127.0.0.1 (16 Jan 2011 21:54:26 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 16 Jan 2011 21:54:26 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l24g2000vby.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:184322 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:78495 Archived-At: On Jan 16, 1:50=A0pm, Peter Dyballa wrote: > Am 16.01.2011 um 20:12 schrieb duke: > > > 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 ? > > I hope your file has a better name than %f! Have you tried to type M-x = =A0 > compile RET? Did you see text appear in the echo-area? Now, could you =A0 > try to type SPACE (the character, not the word) in echo-area/mini- > buffer and than the start of your file's real name (not its path =A0 > name)? Does, when pressing TAB, the file name complete? If so, then =A0 > just press RET! If not, then you have to type some more or make a =A0 > choice at some time... The buffer has been saved to a file. I continue working on the code. I want to re-compile I do M-x compile or goto the menu M-` t c then I'm in the mini-buffer. I enter my compiler name; I've always typed-in the filename currently being edited. I'm wondering if there's another to pass that filename to the mini- buffer? I realize that once I have a compiling history for the session, I can navigate using the arrows, but it's that first time that I'm exploring.