Browse Source

Quote buffer-file-name in prelude-open

custom
Bozhidar Batsov 13 years ago
parent
commit
a569d45a78
  1. 2
      core/prelude-core.el

2
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") ((and (not arg) (member system-type '(gnu gnu/linux gnu/kfreebsd))) "xdg-open")
(t (read-shell-command "Open current file with: "))) (t (read-shell-command "Open current file with: ")))
" " " "
buffer-file-name))))
(shell-quote-argument buffer-file-name)))))
(defun prelude-buffer-mode (buffer-or-name) (defun prelude-buffer-mode (buffer-or-name)
"Retrieve the `major-mode' of BUFFER-OR-NAME." "Retrieve the `major-mode' of BUFFER-OR-NAME."

Loading…
Cancel
Save