summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2002-06-29 17:40:36 +0000
committerAndreas Schwab <schwab@suse.de>2002-06-29 17:40:36 +0000
commit11688fcc018013460904af924a4ad00d3ca4918e (patch)
tree3ee93b939cb74cc0b359adf7b36b4ccca6c1ab62 /lisp
parent306d2bb32f1b2333c5fb3222b64a6d5fc8a47f2a (diff)
downloademacs-11688fcc018013460904af924a4ad00d3ca4918e.tar.gz
emacs-11688fcc018013460904af924a4ad00d3ca4918e.tar.bz2
emacs-11688fcc018013460904af924a4ad00d3ca4918e.zip
(dired-view-file): Quote file name for dired-run-shell-command.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/dired.el5
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8c0fbf783b3..fd5ffe2b3c8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-29 Andreas Schwab <schwab@suse.de>
+
+ * dired.el (dired-view-file): Quote file name for
+ dired-run-shell-command.
+
2002-06-29 Kim F. Storm <storm@cua.dk>
* kmacro.el: New file.
diff --git a/lisp/dired.el b/lisp/dired.el
index 16333a45858..d4ddc9b53a3 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1,6 +1,6 @@
;;; dired.el --- directory-browsing commands
-;; Copyright (C) 1985, 86, 92, 93, 94, 95, 96, 1997, 2000, 2001
+;; Copyright (C) 1985, 86, 92, 93, 94, 95, 96, 1997, 2000, 2001, 2002
;; Free Software Foundation, Inc.
;; Author: Sebastian Kremer <sk@thp.uni-koeln.de>
@@ -1407,7 +1407,8 @@ 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 " " file))
+ (dired-run-shell-command (concat cmd " "
+ (shell-quote-argument file)))
(view-file file))))))
(defun dired-find-file-other-window ()