branch: elpa/aidermacs commit f4fc53e4ceef699ad2404d0970ff70bce4ce56b4 Author: Mingde (Matthew) Zeng <matthew...@posteo.net> Commit: Mingde (Matthew) Zeng <matthew...@posteo.net>
Revert "Use shell-quote-argument" This reverts commit 462c2dc6613bcf4fe4ce039a3eae7b01387000fe. Addresses #88 as it reintroduces the bug again. Signed-off-by: Mingde (Matthew) Zeng <matthew...@posteo.net> --- aidermacs.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aidermacs.el b/aidermacs.el index 08f4168320..6b2fb98a2e 100644 --- a/aidermacs.el +++ b/aidermacs.el @@ -678,7 +678,7 @@ Otherwise, return FILE unchanged." "Prepare FILES for use with COMMAND in aider. Handles TRAMP paths by extracting local parts and formats the command string." (let* ((localized-files (mapcar #'aidermacs--localize-tramp-path (delq nil files))) - (quoted-files (mapcar #'shell-quote-argument localized-files))) + (quoted-files (mapcar (lambda (path) (format "\"%s\"" path)) localized-files))) (if quoted-files (format "%s %s" command (mapconcat #'identity quoted-files " "))