inhibit-eol-conversion is non-nil and the buffer didn't already
set a fully-qualified coding system, force -unix eol-type.
(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)))