* 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
2013-08-13 Glenn Morris <rgm@gnu.org>
+ * progmodes/compile.el (compile-command): Tweak example in doc.
+ * obsolete/scribe.el (scribe-mode):
+ * progmodes/mixal-mode.el (mixal-mode): Quote buffer name. (Bug#15053)
+
* mail/feedmail.el (feedmail-confirm-outgoing)
(feedmail-display-full-frame, feedmail-deduce-bcc-where): Fix types.
(set (make-local-variable 'sentence-end)
"\\([.?!]\\|@:\\)[]\"')}]*\\($\\| $\\|\t\\| \\)[ \t\n]*")
(set (make-local-variable 'compile-command)
- (concat "scribe " (buffer-file-name))))
+ (concat "scribe "
+ (if buffer-file-name
+ (shell-quote-argument (buffer-file-name))))))
(defun scribe-tab ()
(interactive)
(file-exists-p \"Makefile\"))
(set (make-local-variable 'compile-command)
(concat \"make -k \"
- (file-name-sans-extension buffer-file-name))))))"
+ (if buffer-file-name
+ (shell-quote-argument
+ (file-name-sans-extension buffer-file-name))))))))"
:type 'string
:group 'compilation)
;;;###autoload(put 'compile-command 'safe-local-variable (lambda (a) (and (stringp a) (or (not (boundp 'compilation-read-command)) compilation-read-command))))
mixal-syntax-propertize-function)
;; might add an indent function in the future
;; (set (make-local-variable 'indent-line-function) 'mixal-indent-line)
- (set (make-local-variable 'compile-command) (concat "mixasm "
- buffer-file-name)))
+ (set (make-local-variable 'compile-command)
+ (concat "mixasm "
+ (if buffer-file-name
+ (shell-quote-argument buffer-file-name)))))
(provide 'mixal-mode)