(dired-view-file): Let viewer program run asynchronously.
This commit is contained in:
parent
56708dce08
commit
90c1e36a73
1 changed files with 5 additions and 2 deletions
|
@ -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 ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue