Mercurial > emacs
changeset 18987:528cead9a6c3
(compile-command): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 25 Jul 1997 19:02:00 +0000 |
parents | d22331526e2d |
children | 35c373c1f925 |
files | lisp/progmodes/compile.el |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/compile.el Fri Jul 25 18:12:53 1997 +0000 +++ b/lisp/progmodes/compile.el Fri Jul 25 19:02:00 1997 +0000 @@ -423,11 +423,13 @@ You might also use mode hooks to specify it in certain modes, like this: (setq c-mode-hook - '(lambda () (or (file-exists-p \"makefile\") (file-exists-p \"Makefile\") - (progn (make-local-variable 'compile-command) - (setq compile-command - (concat \"make -k \" - buffer-file-name))))))" + (lambda () + (unless (or (file-exists-p \"makefile\") + (file-exists-p \"Makefile\")) + (make-local-variable 'compile-command) + (setq compile-command + (concat \"make -k \" + (file-name-sans-extension buffer-file-name))))))" :type 'string :group 'compilation)