-(or (fboundp 'insert-file-contents-literally)
- (defalias 'insert-file-contents-literally 'insert-file-contents)
- )
+(cond ((fboundp 'insert-file-contents-literally)
+ )
+ ((boundp 'file-name-handler-alist)
+ (defun insert-file-contents-literally
+ (filename &optional visit beg end replace)
+ "Like `insert-file-contents', q.v., but only reads in the file.
+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.
+\[emu.el; Emacs 19.30 emulating function]"
+ (let (file-name-handler-alist)
+ (insert-file-contents filename visit beg end replace)
+ ))
+ )
+ (t
+ (defalias 'insert-file-contents-literally 'insert-file-contents)
+ ))