diff --git a/visual-regexp-steroids.el b/visual-regexp-steroids.el index 83105a7..a65e690 100644 --- a/visual-regexp-steroids.el +++ b/visual-regexp-steroids.el @@ -46,7 +46,9 @@ ;;; variables (defvar vr--command-python-default - (format "python %s" (expand-file-name "regexp.py" (file-name-directory load-file-name)))) + (format "python %s" + (shell-quote-argument (expand-file-name "regexp.py" + (file-name-directory load-file-name))))) (defcustom vr/command-python vr--command-python-default "External command used for the Python engine." @@ -295,7 +297,9 @@ and the message line." (format "%s matches --regexp %s %s %s" (vr--get-command) (shell-quote-argument regexp-string) - (when feedback-limit (format "--feedback-limit %s" feedback-limit)) + (if feedback-limit + (format "--feedback-limit %s" feedback-limit) + "") (if forward "" "--backwards")) (lambda (output) (vr--parse-matches