diff options
| author | Richard M. Stallman | 1997-07-25 05:59:39 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-25 05:59:39 +0000 |
| commit | 5ab5daada52deee23328438772b14b3f9c150a77 (patch) | |
| tree | 6eaedcc5427cf48abfef5f87f84374c6e2c0408c | |
| parent | ee371b017d3a67e08e2cf5740ad32ba0e7c434c3 (diff) | |
| download | emacs-5ab5daada52deee23328438772b14b3f9c150a77.tar.gz emacs-5ab5daada52deee23328438772b14b3f9c150a77.zip | |
(metamail-region): Don't bind kanji-fileio-code
or file-coding-system. Don't call define-program-kanji-code
or define-program-coding-system. Instead, bind coding-system-for-read.
| -rw-r--r-- | lisp/mail/metamail.el | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/lisp/mail/metamail.el b/lisp/mail/metamail.el index c72cef5d6a5..d838762fdc7 100644 --- a/lisp/mail/metamail.el +++ b/lisp/mail/metamail.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 1993, 1996 Masanobu UMEDA | 3 | ;; Copyright (C) 1993, 1996 Masanobu UMEDA |
| 4 | 4 | ||
| 5 | ;; Author: Masanobu UMEDA <umerin@mse.kyutech.ac.jp> | 5 | ;; Author: Masanobu UMEDA <umerin@mse.kyutech.ac.jp> |
| 6 | ;; Version: $Id: metamail.el,v 1.6 1997/05/05 05:45:46 eggert Exp rms $ | 6 | ;; Version: $Id: metamail.el,v 1.7 1997/05/05 11:51:44 rms Exp rms $ |
| 7 | ;; Keywords: mail, news, mime, multimedia | 7 | ;; Keywords: mail, news, mime, multimedia |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| @@ -170,10 +170,7 @@ redisplayed as output is inserted." | |||
| 170 | (save-excursion | 170 | (save-excursion |
| 171 | ;; Gee! Metamail does not ouput to stdout if input comes from | 171 | ;; Gee! Metamail does not ouput to stdout if input comes from |
| 172 | ;; stdin. | 172 | ;; stdin. |
| 173 | (let ((selective-display nil) ;Disable ^M to nl translation. | 173 | (let ((selective-display nil)) ;Disable ^M to nl translation. |
| 174 | (kanji-fileio-code 2) ;Write in JIS code when nemacs. | ||
| 175 | (file-coding-system ;Write in JUNET style when mule. | ||
| 176 | (if (featurep 'mule) *junet*))) | ||
| 177 | (write-region beg end metafile nil 'nomessage)) | 174 | (write-region beg end metafile nil 'nomessage)) |
| 178 | (if buffer | 175 | (if buffer |
| 179 | (set-buffer buffer)) | 176 | (set-buffer buffer)) |
| @@ -187,12 +184,8 @@ redisplayed as output is inserted." | |||
| 187 | ;; to pass such information directly. | 184 | ;; to pass such information directly. |
| 188 | (let ((process-environment | 185 | (let ((process-environment |
| 189 | (append process-environment | 186 | (append process-environment |
| 190 | metamail-environment option-environment))) | 187 | metamail-environment option-environment)) |
| 191 | ;; Specify character coding system. | 188 | (coding-system-for-read 'undecided)) |
| 192 | (if (boundp 'NEMACS) | ||
| 193 | (define-program-kanji-code nil metamail-program-name 2)) ;JIS | ||
| 194 | (if (featurep 'mule) | ||
| 195 | (define-program-coding-system nil metamail-program-name *junet*)) | ||
| 196 | (apply (function call-process) | 189 | (apply (function call-process) |
| 197 | metamail-program-name | 190 | metamail-program-name |
| 198 | nil | 191 | nil |