]> git.eshelyaron.com Git - emacs.git/commitdiff
(select-safe-coding-system): Check for
authorRichard M. Stallman <rms@gnu.org>
Mon, 5 Aug 2002 16:34:53 +0000 (16:34 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 5 Aug 2002 16:34:53 +0000 (16:34 +0000)
non-nil CODING-SYSTEM before warning it disagrees with AUTO-CS.

lisp/international/mule-cmds.el

index c3d3aa8b142ad5180e336ba503ff9ec02e29b275..1b59acdf67a79225a3b6464d5c514d77c712d2a5 100644 (file)
@@ -766,7 +766,7 @@ one of the following safe coding systems, or edit the buffer:\n")
                         (goto-char (point-min))
                         (set-auto-coding (or file buffer-file-name "")
                                          (buffer-size))))))
-       (if (and auto-cs
+       (if (and auto-cs coding-system
                 ;; Don't barf if writing a compressed file, say.
                 ;; This check perhaps isn't ideal, but is probably
                 ;; the best thing to do.