aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-07-13 01:10:09 +0000
committerRichard M. Stallman1998-07-13 01:10:09 +0000
commit7ec4806e71fd2b51f8925f6e4d60db3fbf946b7e (patch)
treeb4b9839a311c8e92704792582dc282b60194ee6c
parent0108f679e4334ee197cb0605cf0ad0fe23bd9c04 (diff)
downloademacs-7ec4806e71fd2b51f8925f6e4d60db3fbf946b7e.tar.gz
emacs-7ec4806e71fd2b51f8925f6e4d60db3fbf946b7e.zip
(jka-compr-insert-file-contents): Replace incorrect
inline code with call to find-operation-coding-system.
-rw-r--r--lisp/jka-compr.el14
1 files changed, 4 insertions, 10 deletions
diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el
index 23c4eccf674..fc53a0b329a 100644
--- a/lisp/jka-compr.el
+++ b/lisp/jka-compr.el
@@ -520,16 +520,10 @@ There should be no more than seven characters after the final `/'."
520 ;; don't do that conversion. 520 ;; don't do that conversion.
521 (and (null enable-multibyte-characters) 521 (and (null enable-multibyte-characters)
522 'raw-text) 522 'raw-text)
523 (let ((tail file-coding-system-alist) 523 (let ((coding (find-operation-coding-system
524 (newfile 524 'insert-file-contents
525 (jka-compr-byte-compiler-base-file-name file)) 525 (jka-compr-byte-compiler-base-file-name file))))
526 result) 526 (and (consp coding) (car coding)))
527 (while tail
528 (if (string-match (car (car tail)) newfile)
529 (setq result (car (cdr (car tail)))
530 tail nil))
531 (setq tail (cdr tail)))
532 result)
533 'undecided)) ) 527 'undecided)) )
534 528
535 (setq local-file (or local-copy filename)) 529 (setq local-file (or local-copy filename))