diff lisp/jka-compr.el @ 24601:c22ae7f6afd9

(jka-compr-insert-file-contents): Use auto-coding-alist-lookup to check for files that should not have eol conversion, in the unibyte case.
author Richard M. Stallman <rms@gnu.org>
date Thu, 08 Apr 1999 22:26:13 +0000
parents 3472aaf1ed7b
children ea0ab5644dca
line wrap: on
line diff
--- a/lisp/jka-compr.el	Thu Apr 08 19:08:22 1999 +0000
+++ b/lisp/jka-compr.el	Thu Apr 08 22:26:13 1999 +0000
@@ -522,7 +522,11 @@
 		   ;; If multibyte characters are disabled,
 		   ;; don't do that conversion.
 		   (and (null enable-multibyte-characters)
-			'raw-text-unix)
+			(or (auto-coding-alist-lookup
+			     (save-match-data
+			       (string-match (jka-compr-info-regexp info) filename)
+			       (substring filename 0 (match-beginning 0))))
+			    'raw-text))
 		   (let ((coding (find-operation-coding-system
 				  'insert-file-contents
 				  (jka-compr-byte-compiler-base-file-name file))))