]> git.eshelyaron.com Git - emacs.git/commitdiff
(jka-compr-insert-file-contents): Replace incorrect
authorRichard M. Stallman <rms@gnu.org>
Mon, 13 Jul 1998 01:10:09 +0000 (01:10 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 13 Jul 1998 01:10:09 +0000 (01:10 +0000)
inline code with call to find-operation-coding-system.

lisp/jka-compr.el

index 23c4eccf6742778fe1279c4a90cf5df1ccfb2e44..fc53a0b329a55331302d4605954ffd860a5ec4de 100644 (file)
@@ -520,16 +520,10 @@ There should be no more than seven characters after the final `/'."
                   ;; 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))