]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/mixal-mode.el
Update docs for `customize-mode'
[gnu-emacs] / lisp / progmodes / mixal-mode.el
index 8814cdbba35a031434fdf79686f00ace0feba577..cfae5695c8d05c3119fa5fe9eaab16f06bd4abfb 100644 (file)
@@ -1,6 +1,6 @@
 ;;; mixal-mode.el --- Major mode for the mix asm language.
 
-;; Copyright (C) 2003-2013 Free Software Foundation, Inc.
+;; Copyright (C) 2003-2016 Free Software Foundation, Inc.
 
 ;; Author: Pieter E.J. Pareit <pieter.pareit@gmail.com>
 ;; Maintainer: Pieter E.J. Pareit <pieter.pareit@gmail.com>
@@ -1113,8 +1113,10 @@ Assumes that file has been compiled with debugging support."
        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)