From: Eli Zaretskii Date: Tue, 4 Aug 1998 10:27:45 +0000 (+0000) Subject: (find-new-buffer-file-coding-system): When X-Git-Tag: emacs-20.3~176 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=be02cd54b3109b000f2dfaf828a538bbdd11b3f7;p=emacs.git (find-new-buffer-file-coding-system): When inhibit-eol-conversion is non-nil and the buffer didn't already set a fully-qualified coding system, force -unix eol-type. --- diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 2de253aa92d..d6ea0b46197 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el @@ -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)))