From be02cd54b3109b000f2dfaf828a538bbdd11b3f7 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 4 Aug 1998 10:27:45 +0000 Subject: [PATCH] (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. --- lisp/international/mule.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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))) -- 2.39.2