unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: auto complile the C program in the current buffer
Date: Tue, 15 Feb 2005 11:36:11 -0700	[thread overview]
Message-ID: <37etouF55h81jU1@individual.net> (raw)
In-Reply-To: <curt1t$3n9$1@domitilla.aioe.org>

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

  reply	other threads:[~2005-02-15 18:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-13 18:51 auto complile the C program in the current buffer GVK
2005-02-14 18:41 ` Kevin Rodgers
2005-02-15  4:17   ` GVK
2005-02-15 18:36     ` Kevin Rodgers [this message]
2005-02-15 22:40       ` Hendrik Sattler
2005-02-16  8:40       ` GVK

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=37etouF55h81jU1@individual.net \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).