aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-08-13 00:56:43 -0700
committerGlenn Morris2013-08-13 00:56:43 -0700
commit55e47f950d4fcc5fd0b02a02aa8c7d622ffaa0d4 (patch)
tree45f2e85e28efff7427f96eec48e8050034f8c54c
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
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/obsolete/scribe.el4
-rw-r--r--lisp/progmodes/compile.el4
-rw-r--r--lisp/progmodes/mixal-mode.el6
4 files changed, 14 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a3b657b23ca..274ca3a3730 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12013-08-13 Glenn Morris <rgm@gnu.org> 12013-08-13 Glenn Morris <rgm@gnu.org>
2 2
3 * progmodes/compile.el (compile-command): Tweak example in doc.
4 * obsolete/scribe.el (scribe-mode):
5 * progmodes/mixal-mode.el (mixal-mode): Quote buffer name. (Bug#15053)
6
3 * mail/feedmail.el (feedmail-confirm-outgoing) 7 * mail/feedmail.el (feedmail-confirm-outgoing)
4 (feedmail-display-full-frame, feedmail-deduce-bcc-where): Fix types. 8 (feedmail-display-full-frame, feedmail-deduce-bcc-where): Fix types.
5 9
diff --git a/lisp/obsolete/scribe.el b/lisp/obsolete/scribe.el
index 8396cce3e27..2ba1bb4aa76 100644
--- a/lisp/obsolete/scribe.el
+++ b/lisp/obsolete/scribe.el
@@ -144,7 +144,9 @@ Interesting variables:
144 (set (make-local-variable 'sentence-end) 144 (set (make-local-variable 'sentence-end)
145 "\\([.?!]\\|@:\\)[]\"')}]*\\($\\| $\\|\t\\| \\)[ \t\n]*") 145 "\\([.?!]\\|@:\\)[]\"')}]*\\($\\| $\\|\t\\| \\)[ \t\n]*")
146 (set (make-local-variable 'compile-command) 146 (set (make-local-variable 'compile-command)
147 (concat "scribe " (buffer-file-name)))) 147 (concat "scribe "
148 (if buffer-file-name
149 (shell-quote-argument (buffer-file-name))))))
148 150
149(defun scribe-tab () 151(defun scribe-tab ()
150 (interactive) 152 (interactive)
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