Mercurial > emacs
diff lisp/dired.el @ 50464:5f5babd538ab
(dired-view-file): Let viewer program run asynchronously.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 06 Apr 2003 20:17:43 +0000 |
parents | ecb46e1986f0 |
children | 5565e45852d3 |
line wrap: on
line diff
--- a/lisp/dired.el Sun Apr 06 20:17:01 2003 +0000 +++ b/lisp/dired.el Sun Apr 06 20:17:43 2003 +0000 @@ -1417,8 +1417,11 @@ (if (string-match (car elt) file) (setq cmd (cdr elt)))) (if cmd - (dired-run-shell-command (concat cmd " " - (shell-quote-argument file))) + (call-process shell-file-name nil 0 nil + "-c" + (concat cmd " " + (shell-quote-argument file) + " &")) (view-file file)))))) (defun dired-find-file-other-window ()