GNU Emacs Lisp Reference Manual
Emacs on MS-DOS makes a distinction between text files and binary files. This is necessary because ordinary text files on MS-DOS use a two character sequence between lines: carriage-return and linefeed (CRLF). Emacs expects just a newline character (a linefeed) between lines. When Emacs reads or writes a text file on MS-DOS, it needs to convert the line separators. This means it needs to know which files are text files and which are binary. It makes this decision when visiting a file, and records the decision in the variable buffer-file-type for use when the file is saved.
See MS-DOS Subprocesses, for a related feature for subprocesses.
nil for text, t for binary.nil for text, t for binary.nil for text, t for binary, or a function to call to compute which. If it is a function, then it is called with a single argument (the file name) and should return t or nil.nil for text, or t for binary.find-file, but treat the file as text regardless of its name.find-file, but treat the file as binary regardless of its name.