[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Passing current buffer to compile command
From: |
duke |
Subject: |
Re: Passing current buffer to compile command |
Date: |
Mon, 17 Jan 2011 11:09:10 -0800 (PST) |
User-agent: |
G2/1.0 |
On Jan 16, 10:48 pm, des...@verizon.net wrote:
> des...@verizon.net writes:
> > duke <sidney.reilley...@gmail.com> 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...
- Passing current buffer to compile command, duke, 2011/01/16
- Re: Passing current buffer to compile command, Peter Dyballa, 2011/01/16
- Re: Passing current buffer to compile command, Pascal J. Bourguignon, 2011/01/16
- Re: Passing current buffer to compile command, despen, 2011/01/16
- Message not available
- Re: Passing current buffer to compile command, duke, 2011/01/16
- Re: Passing current buffer to compile command, Peter Dyballa, 2011/01/16
- Message not available
- Re: Passing current buffer to compile command, duke, 2011/01/16
- Re: Passing current buffer to compile command, Eli Zaretskii, 2011/01/17
- Message not available
- Re: Passing current buffer to compile command, duke, 2011/01/17
Re: Passing current buffer to compile command, rusi, 2011/01/16