]> git.eshelyaron.com Git - emacs.git/commitdiff
(find-new-buffer-file-coding-system): When
authorEli Zaretskii <eliz@gnu.org>
Tue, 4 Aug 1998 10:27:45 +0000 (10:27 +0000)
committerEli Zaretskii <eliz@gnu.org>
Tue, 4 Aug 1998 10:27:45 +0000 (10:27 +0000)
inhibit-eol-conversion is non-nil and the buffer didn't already
set a fully-qualified coding system, force -unix eol-type.

lisp/international/mule.el

index 2de253aa92dad565cff7bcfa72eab96cf5468960..d6ea0b461975431bca8c9ab5e34790ded3262d58 100644 (file)
@@ -962,8 +962,9 @@ Return nil if there's no need of setting new buffer-file-coding-system."
 
        (setq found-eol (coding-system-eol-type coding))
        (if (null (numberp found-eol))
-           ;; But eol-type is not found.
-           (setq found-eol nil))
+           ;; But eol-type is not found.
+           ;; If EOL conversions are inhibited, force unix eol-type.
+           (setq found-eol (if inhibit-eol-conversion 0)))
        (if (eq (coding-system-type coding) t)
            (setq found-coding 'undecided)
          (setq found-coding (coding-system-base coding)))