(mm-display-external): Use `shell-command-switch' instead of "-c".
authorSimon Josefsson <jas@extundo.com>
Mon, 29 Nov 1999 21:45:20 +0000 (21:45 +0000)
committerSimon Josefsson <jas@extundo.com>
Mon, 29 Nov 1999 21:45:20 +0000 (21:45 +0000)
lisp/ChangeLog
lisp/mm-decode.el

index a1aa287..59fe7c7 100644 (file)
@@ -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  <larsi@gnus.org>
 
index 07b85ec..78524aa 100644 (file)
@@ -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)))