The explicit language specified in an emacs file local variable is going to be more correct than the file extension.