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: auto complile the C program in the current buffer Date: Tue, 15 Feb 2005 11:36:11 -0700 Message-ID: <37etouF55h81jU1@individual.net> References: <37c9nbF59kk9pU1@individual.net> NNTP-Posting-Host: main.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 1108492450 6574 80.91.229.2 (15 Feb 2005 18:34:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2005 18:34:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 15 19:34:10 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D17WR-0004ZW-68 for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Feb 2005 19:34:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D17mD-0007pi-W9 for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Feb 2005 13:50:26 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-X-Trace: individual.net kN8S4WB9ufcNyI3Bz1IkwQL6Ko0FWlOJNOSD9ghHzvENLLJFE= 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:128579 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24111 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24111 GVK wrote: > Kevin Rodgers wrote: >> `C-h v compile-command' has that very example. > > compile-command's value is "gcc " > > Documentation: > not documented as a variable. I don't know how you could have deleted compile-command's doc string, but in `emacs-21.3 -q --no-site-file -l compile`: compile-command's value is "make -k " Documentation: *Last shell command used to do a compilation; default for next compilation. Sometimes it is useful for files to supply local values for this variable. You might also use mode hooks to specify it in certain modes, like this: (add-hook 'c-mode-hook (lambda () (unless (or (file-exists-p "makefile") (file-exists-p "Makefile")) (set (make-local-variable 'compile-command) (concat "make -k " (file-name-sans-extension buffer-file-name)))))) You can customize this variable. Defined in `compile'. -- Kevin Rodgers