diff --git a/matlab-maint.el b/matlab-maint.el index eb93015..ee6b071 100644 --- a/matlab-maint.el +++ b/matlab-maint.el @@ -148,6 +148,8 @@ "Run the tests for matlab mode. With universal ARG, ask for the code to be run with output tracking turned on." (interactive "P") + (when (buffer-file-name) + (save-buffer)) (save-excursion (matlab-maint-set-buffer-to "tests/Makefile") (if (or arg matlab-shell-io-testing)