]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-view-file): Let viewer program run asynchronously.
authorRichard M. Stallman <rms@gnu.org>
Sun, 6 Apr 2003 20:17:43 +0000 (20:17 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 6 Apr 2003 20:17:43 +0000 (20:17 +0000)
lisp/dired.el

index db067c5da164b80059695c0019f9d0f4c6479f57..47feb3aa50bde85846474456261d542fe167d44f 100644 (file)
@@ -1417,8 +1417,11 @@ see `dired-view-command-alist'.  Otherwise, display it in another buffer."
          (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 ()