(insert-binary-file-contents): New function.
[elisp/apel.git] / emu-20.el
index 7c09911..2a66399 100644 (file)
--- a/emu-20.el
+++ b/emu-20.el
@@ -1,9 +1,8 @@
 ;;; emu-20.el --- emu API implementation for Emacs 20 and XEmacs/mule
 
-;; Copyright (C) 1997 Free Software Foundation, Inc.
+;; Copyright (C) 1997,1998 Free Software Foundation, Inc.
 
 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
-;; Version: $Id: emu-20.el,v 7.18 1997/11/04 08:36:40 morioka Exp $
 ;; Keywords: emulation, compatibility, Mule
 
 ;; This file is part of emu.
@@ -61,6 +60,14 @@ find-file-hooks, etc.
     (insert-file-contents-literally filename 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 ((coding-system-for-read 'binary)
+       format-alist)
+    (insert-file-contents filename visit beg end replace)
+    ))
+
 ;;; @@ Mule emulating aliases
 ;;;
 ;;; You should not use it.