From 6d51076008e3a22822c2851db96a41957b792a06 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Mon, 29 Nov 1999 21:45:20 +0000 Subject: [PATCH] (mm-display-external): Use `shell-command-switch' instead of "-c". --- lisp/ChangeLog | 1 + lisp/mm-decode.el | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a1aa28708..59fe7c777 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -2,6 +2,7 @@ * mm-decode.el (mm-display-external): For `copiousoutput' methods, switch to buffer after calling program. + (mm-display-external): Use `shell-command-switch' instead of "-c". 1999-11-27 15:21:25 Lars Magne Ingebrigtsen diff --git a/lisp/mm-decode.el b/lisp/mm-decode.el index 07b85ec70..78524aa0e 100644 --- a/lisp/mm-decode.el +++ b/lisp/mm-decode.el @@ -365,7 +365,8 @@ external if displayed external." (cond (needsterm (start-process "*display*" nil "xterm" - "-e" shell-file-name "-c" + "-e" shell-file-name + shell-command-switch (mm-mailcap-command method file (mm-handle-type handle)))) (copiousoutput @@ -373,7 +374,7 @@ external if displayed external." (setq buffer (generate-new-buffer "*mm*")) shell-file-name - "-c" + shell-command-switch (mm-mailcap-command method file (mm-handle-type handle))) (switch-to-buffer buffer)) @@ -382,7 +383,7 @@ external if displayed external." (setq buffer (generate-new-buffer "*mm*")) shell-file-name - "-c" + shell-command-switch (mm-mailcap-command method file (mm-handle-type handle)))))) (mm-handle-set-undisplayer handle (cons file buffer))) -- 2.25.1