(dired-view-file): Let viewer program run asynchronously.

This commit is contained in:
Richard M. Stallman 2003-04-06 20:17:43 +00:00
parent 56708dce08
commit 90c1e36a73

View file

@ -1417,8 +1417,11 @@ see `dired-view-command-alist'. Otherwise, display it in another buffer."
(if (string-match (car elt) file) (if (string-match (car elt) file)
(setq cmd (cdr elt)))) (setq cmd (cdr elt))))
(if cmd (if cmd
(dired-run-shell-command (concat cmd " " (call-process shell-file-name nil 0 nil
(shell-quote-argument file))) "-c"
(concat cmd " "
(shell-quote-argument file)
" &"))
(view-file file)))))) (view-file file))))))
(defun dired-find-file-other-window () (defun dired-find-file-other-window ()