aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2003-04-06 20:17:43 +0000
committerRichard M. Stallman2003-04-06 20:17:43 +0000
commit90c1e36a73e10f0b0c7fbbbada867c60eb59b2f5 (patch)
treeab3072c343b01899b7c89edb0ed142e5e8941ed6
parent56708dce0885db7bbfdf84803c9ad863ea9ed2e0 (diff)
downloademacs-90c1e36a73e10f0b0c7fbbbada867c60eb59b2f5.tar.gz
emacs-90c1e36a73e10f0b0c7fbbbada867c60eb59b2f5.zip
(dired-view-file): Let viewer program run asynchronously.
-rw-r--r--lisp/dired.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index db067c5da16..47feb3aa50b 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1417,8 +1417,11 @@ see `dired-view-command-alist'. Otherwise, display it in another buffer."
1417 (if (string-match (car elt) file) 1417 (if (string-match (car elt) file)
1418 (setq cmd (cdr elt)))) 1418 (setq cmd (cdr elt))))
1419 (if cmd 1419 (if cmd
1420 (dired-run-shell-command (concat cmd " " 1420 (call-process shell-file-name nil 0 nil
1421 (shell-quote-argument file))) 1421 "-c"
1422 (concat cmd " "
1423 (shell-quote-argument file)
1424 " &"))
1422 (view-file file)))))) 1425 (view-file file))))))
1423 1426
1424(defun dired-find-file-other-window () 1427(defun dired-find-file-other-window ()