aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-27 19:25:02 +0000
committerRichard M. Stallman1997-07-27 19:25:02 +0000
commit61c4aaf86e54f3300e5b1ca9a71984ef390db53d (patch)
treeb12a98300004bf8e0ec12eb753e6d6655a24e93f
parentb9c22adf8a795edf4b2387a05473f33e619ddbcf (diff)
downloademacs-61c4aaf86e54f3300e5b1ca9a71984ef390db53d.tar.gz
emacs-61c4aaf86e54f3300e5b1ca9a71984ef390db53d.zip
(compile-command): More doc fix.
-rw-r--r--lisp/progmodes/compile.el17
1 files changed, 9 insertions, 8 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 01bbef5afea..cca20639a0c 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -422,14 +422,15 @@ nil as an element means to try the default directory."
422Sometimes it is useful for files to supply local values for this variable. 422Sometimes it is useful for files to supply local values for this variable.
423You might also use mode hooks to specify it in certain modes, like this: 423You might also use mode hooks to specify it in certain modes, like this:
424 424
425 (setq c-mode-hook 425 (add-hook 'c-mode-hook
426 (lambda () 426 (function
427 (unless (or (file-exists-p \"makefile\") 427 (lambda ()
428 (file-exists-p \"Makefile\")) 428 (unless (or (file-exists-p \"makefile\")
429 (make-local-variable 'compile-command) 429 (file-exists-p \"Makefile\"))
430 (setq compile-command 430 (make-local-variable 'compile-command)
431 (concat \"make -k \" 431 (setq compile-command
432 (file-name-sans-extension buffer-file-name))))))" 432 (concat \"make -k \"
433 (file-name-sans-extension buffer-file-name)))))))"
433 :type 'string 434 :type 'string
434 :group 'compilation) 435 :group 'compilation)
435 436