Mercurial > emacs
comparison lisp/gnus/nnmail.el @ 19988:189ed9f676c9
(nnmail-find-file): Bind
file-name-coding-system to binary.
(nnmail-write-region): Likewise.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 26 Sep 1997 01:50:55 +0000 |
parents | 5f1ab3dd344d |
children | 15fc6acbae7a |
comparison
equal
deleted
inserted
replaced
19987:470e157b3e8a | 19988:189ed9f676c9 |
---|---|
486 (after-insert-file-functions nil)) | 486 (after-insert-file-functions nil)) |
487 (condition-case () | 487 (condition-case () |
488 ;; 1997/5/4 by MORIOKA Tomohiko <morioka@jaist.ac.jp> | 488 ;; 1997/5/4 by MORIOKA Tomohiko <morioka@jaist.ac.jp> |
489 (let ((coding-system-for-read nnmail-file-coding-system) | 489 (let ((coding-system-for-read nnmail-file-coding-system) |
490 ;; 1997/8/12 by MORIOKA Tomohiko | 490 ;; 1997/8/12 by MORIOKA Tomohiko |
491 ;; for XEmacs/mule. | 491 (file-name-coding-system 'binary) ; for Emacs 20 |
492 (pathname-coding-system 'binary)) | 492 (pathname-coding-system 'binary)) ; for XEmacs/mule |
493 (insert-file-contents file) | 493 (insert-file-contents file) |
494 t) | 494 t) |
495 (file-error nil)))) | 495 (file-error nil)))) |
496 | 496 |
497 ;; 1997/8/10 by MORIOKA Tomohiko | 497 ;; 1997/8/10 by MORIOKA Tomohiko |
1648 (defun nnmail-write-region (start end filename &optional append visit lockname) | 1648 (defun nnmail-write-region (start end filename &optional append visit lockname) |
1649 "Do a `write-region', and then set the file modes." | 1649 "Do a `write-region', and then set the file modes." |
1650 ;; 1997/5/4 by MORIOKA Tomohiko <morioka@jaist.ac.jp> | 1650 ;; 1997/5/4 by MORIOKA Tomohiko <morioka@jaist.ac.jp> |
1651 (let ((coding-system-for-write nnmail-file-coding-system) | 1651 (let ((coding-system-for-write nnmail-file-coding-system) |
1652 ;; 1997/8/12 by MORIOKA Tomohiko | 1652 ;; 1997/8/12 by MORIOKA Tomohiko |
1653 ;; for XEmacs/mule. | 1653 (file-name-coding-system 'binary) ; for Emacs 20 |
1654 (pathname-coding-system 'binary)) | 1654 (pathname-coding-system 'binary)) ; for XEmacs/mule |
1655 (write-region start end filename append visit lockname) | 1655 (write-region start end filename append visit lockname) |
1656 (set-file-modes filename nnmail-default-file-modes))) | 1656 (set-file-modes filename nnmail-default-file-modes))) |
1657 | 1657 |
1658 ;;; | 1658 ;;; |
1659 ;;; Status functions | 1659 ;;; Status functions |