Quote buffer-file-name in prelude-open

This commit is contained in:
Bozhidar Batsov 2013-05-09 18:23:07 +03:00
parent 4b907b9620
commit a569d45a78

View file

@ -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."