From a569d45a785f37b9047d75d15291cfad126fbbba Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Thu, 9 May 2013 18:23:07 +0300 Subject: [PATCH] Quote buffer-file-name in prelude-open --- core/prelude-core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/prelude-core.el b/core/prelude-core.el index a4c4b68..3c7f4e5 100644 --- a/core/prelude-core.el +++ b/core/prelude-core.el @@ -47,7 +47,7 @@ With a prefix ARG always prompt for command to use." ((and (not arg) (member system-type '(gnu gnu/linux gnu/kfreebsd))) "xdg-open") (t (read-shell-command "Open current file with: "))) " " - buffer-file-name)))) + (shell-quote-argument buffer-file-name))))) (defun prelude-buffer-mode (buffer-or-name) "Retrieve the `major-mode' of BUFFER-OR-NAME."