Fix escaping in open-in-external-app on windows

Replace-regexp needs extra backslahes. See discussion in:
http://lists.gnu.org/archive/html/help-gnu-emacs/2009-08/msg00713.html
This commit is contained in:
fandag 2015-04-18 19:07:49 +02:00 committed by syl20bnr
parent 51280cf4d8
commit 968eb783d1

View file

@ -810,7 +810,7 @@ If ASCII si not provided then UNICODE is used instead."
(dired-get-file-for-visit)
(buffer-file-name))))
(cond
((system-is-mswindows) (w32-shell-execute "open" (replace-regexp-in-string "/" "\\" file-path)))
((system-is-mswindows) (w32-shell-execute "open" (replace-regexp-in-string "/" "\\\\" file-path)))
((system-is-mac) (shell-command (format "open \"%s\"" file-path)))
((system-is-linux) (let ((process-connection-type nil))
(start-process "" nil "xdg-open" file-path))))))