From: morioka Date: Wed, 11 Mar 1998 14:48:40 +0000 (+0000) Subject: (write-region-as-binary): New file. X-Git-Tag: apel-7_1~34 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bf0f32d630ea4510a684816e02a5581d5357a30;p=elisp%2Fapel.git (write-region-as-binary): New file. --- diff --git a/emu-e19.el b/emu-e19.el index bdba07b..8b11139 100644 --- a/emu-e19.el +++ b/emu-e19.el @@ -159,8 +159,8 @@ else returns nil. [emu-e19.el; old MULE emulating function]" ;;; @ binary access ;;; -(defun insert-binary-file-contents-literally - (filename &optional visit beg end replace) +(defun insert-binary-file-contents-literally (filename + &optional visit beg end replace) "Like `insert-file-contents-literally', q.v., but don't code conversion. A buffer may be modified in several ways after reading into the buffer due to advanced Emacs features, such as file-name-handlers, format decoding, @@ -170,13 +170,18 @@ find-file-hooks, etc. (insert-file-contents-literally filename visit beg end replace) )) -(defun insert-binary-file-contents - (filename &optional visit beg end replace) +(defun insert-binary-file-contents (filename &optional visit beg end replace) "Like `insert-file-contents', q.v., but don't code and format conversion." (let ((emx-binary-mode t)) (insert-file-contents filename visit beg end replace) )) +(defun write-region-as-binary (start end filename + &optional append visit lockname) + "Like `write-region', q.v., but don't code conversion." + (let ((emx-binary-mode t)) + (write-region start end filename append visit lockname) + )) ;;; @ MIME charset