Mercurial > hg > xemacs-beta
diff lisp/tl/emu-e19.el @ 100:4be1180a9e89 r20-1b2
Import from CVS: tag r20-1b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:15:11 +0200 |
parents | c0c698873ce1 |
children |
line wrap: on
line diff
--- a/lisp/tl/emu-e19.el Mon Aug 13 09:13:58 2007 +0200 +++ b/lisp/tl/emu-e19.el Mon Aug 13 09:15:11 2007 +0200 @@ -1,9 +1,9 @@ ;;; emu-e19.el --- emu module for Emacs 19 and XEmacs 19 -;; Copyright (C) 1995,1996 Free Software Foundation, Inc. +;; Copyright (C) 1995,1996,1997 Free Software Foundation, Inc. ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp> -;; Version: $Id: emu-e19.el,v 1.2 1996/12/28 21:03:08 steve Exp $ +;; Version: $Id: emu-e19.el,v 1.3 1997/02/24 01:14:16 steve Exp $ ;; Keywords: emulation, compatibility, mule, Latin-1 ;; This file is part of emu. @@ -135,6 +135,11 @@ (,@ body) ))) +(defmacro as-binary-output-file (&rest body) + (` (let ((emx-binary-mode t)) ; Stop CRLF to LF conversion in OS/2 + (,@ body) + ))) + ;;; @@ for old MULE emulation ;;; @@ -152,6 +157,21 @@ t) +;;; @ binary access +;;; + +(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, +find-file-hooks, etc. + This function ensures that none of these modifications will take place." + (let ((emx-binary-mode t)) + (insert-file-contents-literally filename visit beg end replace) + )) + + ;;; @ MIME charset ;;;