Joe Pfeiffer
9/9/2011 10:14:00 PM
Jimmy <nospam@trash.invalid> writes:
> Hello everyone!
>
> As the subject says. The reason for my question is that emacs always
> suggest me to put a newline at the end of the C file if I forget to do
> it. Why?
It makes the same suggestion for every sort of text file I've ever had
occasion to notice it on. There are lots of programs accepting text
input that assume every line of text ends with a newline, and which will
misbehave in various ways if that assumption is false (at one time
decades ago, the sh shell was one of those programs -- and if the last
line of a shell script didn't end with a newline, that last command
wasn't executed).