X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=mime-play.el;h=82f3f6968be884c00e5ff15b98d2004a9af6ee85;hb=dfd925a11b8f90d7af2a66631d198aee9eedd78c;hp=e43b872d72f8b7130d1cf29d21a7218b97fde75f;hpb=17cacd9ff91f19bac96c1b6f9db2c414a53d2b68;p=elisp%2Fsemi.git diff --git a/mime-play.el b/mime-play.el index e43b872..82f3f69 100644 --- a/mime-play.el +++ b/mime-play.el @@ -148,7 +148,7 @@ specified, play as it. Default MODE is \"play\"." (message "External method is starting...") (let ((process (let ((command - (mailcap-format-command + (mime-format-mailcap-command method (cons (cons 'filename name) situation)))) (start-process command mime-echo-buffer-name @@ -369,7 +369,7 @@ It is registered to variable `mime-preview-quitting-method-alist'." (save-window-excursion (set-buffer full-buf) (erase-buffer) - (insert-file-contents-as-binary file) + (binary-insert-encoded-file file) (setq major-mode 'mime-show-message-mode) (mime-view-buffer (current-buffer) nil mother) (setq pbuf (current-buffer)) @@ -420,24 +420,21 @@ It is registered to variable `mime-preview-quitting-method-alist'." (or (file-exists-p file) (throw 'tag nil) ) - (as-binary-input-file (insert-file-contents file)) + (binary-insert-encoded-file file) (goto-char (point-max)) - (setq i (1+ i)) - )) - (write-region-as-binary (point-min)(point-max) - (expand-file-name "FULL" root-dir)) + (setq i (1+ i)))) + (binary-write-decoded-region + (point-min)(point-max) + (expand-file-name "FULL" root-dir)) (let ((i 1)) (while (<= i total) (let ((file (format "%s/%d" root-dir i))) (and (file-exists-p file) - (delete-file file) - )) - (setq i (1+ i)) - )) + (delete-file file))) + (setq i (1+ i)))) (let ((file (expand-file-name "CT" root-dir))) (and (file-exists-p file) - (delete-file file) - )) + (delete-file file))) (let ((buf (current-buffer)) (pwin (or (get-buffer-window mother) (get-largest-window)))