changeset 22746:516b9dfa5d34

(jka-compr-insert-file-contents): Replace incorrect inline code with call to find-operation-coding-system.
author Richard M. Stallman <rms@gnu.org>
date Mon, 13 Jul 1998 01:10:09 +0000
parents ef9607e709bc
children 63b084753ad7
files lisp/jka-compr.el
diffstat 1 files changed, 4 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/jka-compr.el	Sun Jul 12 20:24:23 1998 +0000
+++ b/lisp/jka-compr.el	Mon Jul 13 01:10:09 1998 +0000
@@ -520,16 +520,10 @@
 		   ;; don't do that conversion.
 		   (and (null enable-multibyte-characters)
 			'raw-text)
-		   (let ((tail file-coding-system-alist)
-			 (newfile
-			  (jka-compr-byte-compiler-base-file-name file))
-			 result)
-		     (while tail
-		       (if (string-match (car (car tail)) newfile)
-			   (setq result (car (cdr (car tail)))
-				 tail nil))
-		       (setq tail (cdr tail)))
-		     result)
+		   (let ((coding (find-operation-coding-system
+				  'insert-file-contents
+				  (jka-compr-byte-compiler-base-file-name file))))
+		     (and (consp coding) (car coding)))
 		   'undecided)) )
 
 	  (setq local-file (or local-copy filename))