]> code.delx.au - gnu-emacs/commitdiff
(select-safe-coding-system): Don't
authorKenichi Handa <handa@m17n.org>
Mon, 25 Apr 2005 04:30:38 +0000 (04:30 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 25 Apr 2005 04:30:38 +0000 (04:30 +0000)
check consistency with coding: spec, etc if raw-text or
no-conversion was found to be safe.

lisp/ChangeLog
lisp/international/mule-cmds.el

index c69788b38d496fc4dd67ad2b591f9b6fd559f870..8820980bf7df6fbc0c15513b6ca8df36037df85d 100644 (file)
@@ -1,3 +1,9 @@
+2005-04-25  Kenichi Handa  <handa@m17n.org>
+
+       * international/mule-cmds.el (select-safe-coding-system): Don't
+       check consistency with coding: spec, etc if raw-text or
+       no-conversion was found to be safe.
+
 2005-04-24  Richard M. Stallman  <rms@gnu.org>
 
        * mail/sendmail.el (mail-font-lock-keywords): Match any number of
index b4f78918ef1c3e21ac4dc09c48e4450555a74e64..39cb1d05ca33f028bcdc35c3113c736fcda7c7fb 100644 (file)
@@ -927,7 +927,9 @@ and TO is ignored."
     ;; give when file is re-read.
     ;; But don't do this if we explicitly ignored the cookie
     ;; by using `find-file-literally'.
-    (unless (or (stringp from) find-file-literally)
+    (unless (or (stringp from)
+               find-file-literally
+               (memq (coding-system-type coding-system) '(0 5)))
       (let ((auto-cs (save-excursion
                       (save-restriction
                         (widen)