aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2002-06-29 17:40:36 +0000
committerAndreas Schwab2002-06-29 17:40:36 +0000
commit11688fcc018013460904af924a4ad00d3ca4918e (patch)
tree3ee93b939cb74cc0b359adf7b36b4ccca6c1ab62
parent306d2bb32f1b2333c5fb3222b64a6d5fc8a47f2a (diff)
downloademacs-11688fcc018013460904af924a4ad00d3ca4918e.tar.gz
emacs-11688fcc018013460904af924a4ad00d3ca4918e.zip
(dired-view-file): Quote file name for dired-run-shell-command.
-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 @@
12002-06-29 Andreas Schwab <schwab@suse.de>
2
3 * dired.el (dired-view-file): Quote file name for
4 dired-run-shell-command.
5
12002-06-29 Kim F. Storm <storm@cua.dk> 62002-06-29 Kim F. Storm <storm@cua.dk>
2 7
3 * kmacro.el: New file. 8 * 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 @@
1;;; dired.el --- directory-browsing commands 1;;; dired.el --- directory-browsing commands
2 2
3;; Copyright (C) 1985, 86, 92, 93, 94, 95, 96, 1997, 2000, 2001 3;; Copyright (C) 1985, 86, 92, 93, 94, 95, 96, 1997, 2000, 2001, 2002
4;; Free Software Foundation, Inc. 4;; Free Software Foundation, Inc.
5 5
6;; Author: Sebastian Kremer <sk@thp.uni-koeln.de> 6;; Author: Sebastian Kremer <sk@thp.uni-koeln.de>
@@ -1407,7 +1407,8 @@ see `dired-view-command-alist'. Otherwise, display it in another buffer."
1407 (if (string-match (car elt) file) 1407 (if (string-match (car elt) file)
1408 (setq cmd (cdr elt)))) 1408 (setq cmd (cdr elt))))
1409 (if cmd 1409 (if cmd
1410 (dired-run-shell-command (concat cmd " " file)) 1410 (dired-run-shell-command (concat cmd " "
1411 (shell-quote-argument file)))
1411 (view-file file)))))) 1412 (view-file file))))))
1412 1413
1413(defun dired-find-file-other-window () 1414(defun dired-find-file-other-window ()