From 131737c318c8dccc0f9f46e4ce41240d871ec10d Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 7 Oct 2022 14:55:45 -0400 Subject: [PATCH] Quote filenames correctly in scad-compile --- .emacs.d/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 4233d43..b9a37c7 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -734,7 +734,8 @@ (defun scad-compile (ext) "Compile current buffer using 'scad-command' and the extention 'ext'" (interactive (list (completing-read "Extension: " '("stl" "off" "amf" "dxf" "svg" "csg" "png")))) - (compile (concat scad-command " -o " (file-name-sans-extension buffer-file-name) "." ext " " buffer-file-name))) + (compile (combine-and-quote-strings + `(,scad-command "-o" ,(file-name-with-extension buffer-file-name ext) ,buffer-file-name)))) :bind (:map scad-mode-map ("C-c z" . scad-compile))) (use-package smart-tabs-mode