changeset 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 b4b69a752c69
children 6fc90e779714
files lisp/dired.el
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
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 ()