fix(fortran): account for spaces in filenames

This commit is contained in:
Colin Woodbury 2022-04-25 16:55:44 -07:00 committed by Henrik Lissner
parent 488ad07cc5
commit 6bf725837d

View file

@ -32,7 +32,7 @@ or gfortran, depending on what feature flags are set."
(defun +fortran/ifort-compile ()
"Compile the current buffer using ifort."
(interactive)
(compile (format "ifort %s"
(compile (format "ifort %S"
(buffer-file-name))))
;;;###autoload
@ -63,7 +63,7 @@ or gfortran, depending on what feature flags are set."
(defun +fortran/gfortran-compile ()
"Compile the current buffer using gfortran."
(interactive)
(compile (format "gfortran %s %s"
(compile (format "gfortran %s %S"
(+fortran--std)
buffer-file-name)))