aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorGlenn Morris2013-08-13 00:56:43 -0700
committerGlenn Morris2013-08-13 00:56:43 -0700
commit55e47f950d4fcc5fd0b02a02aa8c7d622ffaa0d4 (patch)
tree45f2e85e28efff7427f96eec48e8050034f8c54c /lisp/progmodes
parentf0024d8c0dbe5dcb2551bf2433af39ffe7cb8f7a (diff)
downloademacs-55e47f950d4fcc5fd0b02a02aa8c7d622ffaa0d4.tar.gz
emacs-55e47f950d4fcc5fd0b02a02aa8c7d622ffaa0d4.zip
Tweak some settings of compile-command
* progmodes/compile.el (compile-command): Tweak example in doc. * obsolete/scribe.el (scribe-mode): * progmodes/mixal-mode.el (mixal-mode): Quote buffer name. Fixes: debbugs:15053
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/compile.el4
-rw-r--r--lisp/progmodes/mixal-mode.el6
2 files changed, 7 insertions, 3 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index e909f1a5e5b..8c981b36e56 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -624,7 +624,9 @@ You might also use mode hooks to specify it in certain modes, like this:
624 (file-exists-p \"Makefile\")) 624 (file-exists-p \"Makefile\"))
625 (set (make-local-variable 'compile-command) 625 (set (make-local-variable 'compile-command)
626 (concat \"make -k \" 626 (concat \"make -k \"
627 (file-name-sans-extension buffer-file-name))))))" 627 (if buffer-file-name
628 (shell-quote-argument
629 (file-name-sans-extension buffer-file-name))))))))"
628 :type 'string 630 :type 'string
629 :group 'compilation) 631 :group 'compilation)
630;;;###autoload(put 'compile-command 'safe-local-variable (lambda (a) (and (stringp a) (or (not (boundp 'compilation-read-command)) compilation-read-command)))) 632;;;###autoload(put 'compile-command 'safe-local-variable (lambda (a) (and (stringp a) (or (not (boundp 'compilation-read-command)) compilation-read-command))))
diff --git a/lisp/progmodes/mixal-mode.el b/lisp/progmodes/mixal-mode.el
index 8814cdbba35..a14654cdd7c 100644
--- a/lisp/progmodes/mixal-mode.el
+++ b/lisp/progmodes/mixal-mode.el
@@ -1113,8 +1113,10 @@ Assumes that file has been compiled with debugging support."
1113 mixal-syntax-propertize-function) 1113 mixal-syntax-propertize-function)
1114 ;; might add an indent function in the future 1114 ;; might add an indent function in the future
1115 ;; (set (make-local-variable 'indent-line-function) 'mixal-indent-line) 1115 ;; (set (make-local-variable 'indent-line-function) 'mixal-indent-line)
1116 (set (make-local-variable 'compile-command) (concat "mixasm " 1116 (set (make-local-variable 'compile-command)
1117 buffer-file-name))) 1117 (concat "mixasm "
1118 (if buffer-file-name
1119 (shell-quote-argument buffer-file-name)))))
1118 1120
1119(provide 'mixal-mode) 1121(provide 'mixal-mode)
1120 1122