From 6bf725837def83acd140d9431d799c8b09abebf3 Mon Sep 17 00:00:00 2001 From: Colin Woodbury Date: Mon, 25 Apr 2022 16:55:44 -0700 Subject: [PATCH] fix(fortran): account for spaces in filenames --- modules/lang/fortran/autoload.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lang/fortran/autoload.el b/modules/lang/fortran/autoload.el index 4df12fd91..cc8ac2b64 100644 --- a/modules/lang/fortran/autoload.el +++ b/modules/lang/fortran/autoload.el @@ -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)))