branch: externals/rec-mode
commit 0ea7b1857df9c1c9d2028bd9bfa1d5f01b2449bc
Author: Jose E. Marchesi <[email protected]>
Commit: Antoine Kalmbach <[email protected]>
rec-mode: quote the shell argument with the file name when invoking recfix.
---
etc/rec-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/etc/rec-mode.el b/etc/rec-mode.el
index a47e3bd..f0d4804 100644
--- a/etc/rec-mode.el
+++ b/etc/rec-mode.el
@@ -1965,7 +1965,7 @@ This command is especially useful with enumerated types."
(cmd (concat rec-recfix " "))
(tmpfile (make-temp-file "rec-mode-")))
(if buffer-file-name
- (setq cmd (concat cmd buffer-file-name))
+ (setq cmd (concat cmd (shell-quote-argument buffer-file-name)))
(with-temp-file tmpfile
(insert-buffer-substring cur-buf))
(setq cmd (concat cmd tmpfile)))